<template>
  <div class="home">
    <div>
      <el-form ref="form" :model="form" label-width="80px" >
        <br>
        <el-form-item label="角色属性">
          <el-button @click="drawer = true" type="primary" style="margin-left: 16px;">
            点击输入属性
          </el-button>
          <el-button @click="huanzhuang = true" type="primary" style="margin-left: 16px;">
            换装
          </el-button>
          <el-button @click="peizhuang = true;click_refresh()" type="warning" style="margin-left: 16px;">
            内置配装器
          </el-button>


        </el-form-item>
        <el-form-item label="奇穴" >
          <el-button @click="miji = true" type="primary" style="margin-left: 16px;margin-right: 1%">
            秘籍
          </el-button>
          <el-select v-model="form.qixue_1" style="width: 80px">
            <el-option label="正夏" value="1" onselect="qixue_1" style="color: indigo"></el-option>
            <el-option label="明心" value="2" onselect="qixue_1" style="color: indigo"></el-option>
            <el-option label="水盈" value="3" onselect="qixue_1" style="color: indigo"></el-option>
          </el-select>
          <el-select v-model="form.qixue_2" style="width: 80px">
            <el-option label="望旗" value="1" onselect="qixue_2" style="color: indigo"></el-option>
            <el-option label="关锁" value="2" onselect="qixue_2"></el-option>
            <el-option label="天网" value="3" onselect="qixue_2" ></el-option>

          </el-select>
          <el-select v-model="form.qixue_3" style="width: 80px">
            <el-option label="顺祝" value="1" onselect="qixue_3" style="color: indigo"></el-option>
            <el-option label="山瘴" value="2" onselect="qixue_3" disabled></el-option>
            <el-option label="连蜷" value="3" onselect="qixue_3" disabled></el-option>
            <el-option label="伏位" value="4" onselect="qixue_3" disabled></el-option>
          </el-select>
          <el-select v-model="form.qixue_4" style="width: 100px">
            <el-option label="荧入白" value="1" onselect="qixue_4" style="color: indigo"></el-option>
            <el-option label="水洊" value="2" onselect="qixue_4" ></el-option>
            <el-option label="龙回首" value="3" onselect="qixue_4"></el-option>
            <el-option label="神皆寂" value="4" onselect="qixue_4"></el-option>
          </el-select>
          <el-select v-model="form.qixue_5" style="width: 80px">
          <el-option label="重山" value="1" onselect="qixue_5" style="color: indigo"></el-option>
          <el-option label="罔替" value="2" onselect="qixue_5"  disabled></el-option>
          <el-option label="地遁" value="3" onselect="qixue_5"  disabled></el-option>
          <el-option label="星合" value="4" onselect="qixue_5"  disabled></el-option>
        </el-select>
          <el-select v-model="form.qixue_6" style="width: 80px">
          <el-option label="鬼遁" value="1" onselect="qixue_6" style="color: indigo"></el-option>
          <el-option label="神遁" value="2" onselect="qixue_6"></el-option>
          <el-option label="风遁" value="3" onselect="qixue_6"></el-option>
          <el-option label="天医" value="4" onselect="qixue_6"></el-option>
        </el-select>
          <el-select v-model="form.qixue_7" style="width: 80px">
            <el-option label="祝祷" value="1" onselect="qixue_7" style="color: indigo"></el-option>
            <el-option label="虎遁" value="2" onselect="qixue_7"></el-option>
            <el-option label="亘天" value="3" onselect="qixue_7" style="color: indigo"></el-option>
            <el-option label="移魂" value="4" onselect="qixue_7" ></el-option>
          </el-select>
          <el-select v-model="form.qixue_8" style="width: 80px">
            <el-option label="神元" value="1" onselect="qixue_8" style="color: indigo"></el-option>
            <el-option label="覆舟" value="2" onselect="qixue_8"></el-option>
            <el-option label="神俱" value="3" onselect="qixue_8"></el-option>
            <el-option label="虎猖狂" value="4" onselect="qixue_8"></el-option>
            <el-option label="知微" value="5" onselect="qixue_8"></el-option>
          </el-select>
          <el-select v-model="form.qixue_9" style="width: 80px">
            <el-option label="枭神" value="1" onselect="qixue_9"></el-option>
            <el-option label="比扶" value="2" onselect="qixue_9" style="color: indigo"></el-option>
            <el-option label="器盈" value="3" onselect="qixue_9"></el-option>
            <el-option label="休囚" value="4" onselect="qixue_9"></el-option>
            <el-option label="延年" value="5" onselect="qixue_9"></el-option>
          </el-select>
          <el-select v-model="form.qixue_10" style="width: 80px">
            <el-option label="征凶" value="1" onselect="qixue_10" style="color: indigo"></el-option>
            <el-option label="司命" value="2" onselect="qixue_10" disabled></el-option>
            <el-option label="天钺" value="3" onselect="qixue_10" disabled></el-option>
            <el-option label="龙马出河" value="4" onselect="qixue_10" disabled></el-option>
            <el-option label="华盖" value="5" onselect="qixue_10" disabled></el-option>
          </el-select>
          <el-select v-model="form.qixue_11" style="width: 80px">
            <el-option label="擎羊" value="1" onselect="qixue_11" disabled></el-option>
            <el-option label="灵器" value="2" onselect="qixue_11" style="color: indigo"></el-option>
            <el-option label="焚如" value="3" onselect="qixue_11" style="color: indigo"></el-option>
            <el-option label="直符" value="4" onselect="qixue_11" disabled></el-option>
            <el-option label="连断" value="5" onselect="qixue_11" disabled></el-option>
          </el-select>
          <el-select v-model="form.qixue_12" style="width: 110px">
            <el-option label="增卜" value="1" onselect="qixue_12" style="color: indigo"  ></el-option>
            <el-option label="相蚀" value="2" onselect="qixue_12" disabled ></el-option>
            <el-option label="洞彻九宫" value="3" onselect="qixue_12" disabled></el-option>

            <el-option label="连极阵" value="5" onselect="qixue_12" disabled></el-option>
            <el-option label="杀星在尾（6+6 PlanA）" value="4" onselect="qixue_12" style="color: indigo"></el-option>
            <el-option label="杀星在尾（6+6 PlanB）" value="7" onselect="qixue_12" style="color: indigo"></el-option>
            <el-option label="杀星在尾（565656-211211 PlanC）" value="8" onselect="qixue_12" style="color: indigo"></el-option>
          </el-select>

          <br><label>奇穴紫色选项为计算器已实装奇穴，同层选择其他奇穴可取消其效果，不影响技能循环</label>
        </el-form-item>
        <el-form-item label="阵眼" >
          <el-select v-model="form.zhenyan" style="width: 120px">
            <el-option label="无阵眼" value="1" onselect="zhenyan" ></el-option>
            <el-option label="花间阵" value="2" onselect="zhenyan" ></el-option>
            <el-option label="气纯阵" value="3" onselect="zhenyan" ></el-option>
            <el-option label="大师阵" value="4" onselect="zhenyan" ></el-option>
            <el-option label="田螺阵" value="5" onselect="zhenyan" ></el-option>
            <el-option label="莫问阵" value="9" onselect="zhenyan" ></el-option>
            <el-option label="毒经阵" value="6" onselect="zhenyan" ></el-option>
            <el-option label="衍天阵-自己" value="7" onselect="zhenyan" ></el-option>
            <el-option label="衍天阵-同门" value="8" onselect="zhenyan" ></el-option>
            <el-option label="无方阵" value="10" onselect="zhenyan" ></el-option>

          </el-select>
          <label style="margin-left: 1%">目标：</label>
          <el-select v-model="form.target" style="width: 120px;margin-left: 0%">
            <!--            <el-option label="110级" value="1" onselect="target" disabled></el-option>-->
            <el-option label="111级" value="2" onselect="target"></el-option>
            <el-option label="112级" value="3" onselect="target"></el-option>
            <el-option label="113级" value="4" onselect="target"></el-option>
            <el-option label="114级" value="5" onselect="target"></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="装备增益" >
          <el-checkbox-group v-model="form.buff">
            <el-checkbox label="套装+技能伤害" name="buff" ></el-checkbox>
            <el-checkbox label="套装+双会" name="buff" ></el-checkbox>
            <el-checkbox label="伤腰大附魔" name="buff" ></el-checkbox>
            <el-checkbox label="伤手大附魔" name="buff" ></el-checkbox>
            <el-checkbox label="腰坠·风特效" name="buff"></el-checkbox>
            <el-checkbox label="武器·谢光阴" name="buff"></el-checkbox>
            <el-checkbox label="武器·空亡宫" name="buff"></el-checkbox>
            <el-checkbox label="武器·逢龙" name="buff"></el-checkbox>
            <el-checkbox label="武器·五六阶小橙武" name="buff"></el-checkbox>
            <el-checkbox label="飞剑·意" name="buff" v-on:change="longmen"></el-checkbox>
            <el-checkbox label="POWER·归一" name="buff" v-on:change="guiyi"></el-checkbox>
            <br>
            <el-radio v-model="form.shangku" label="1">伤裤大附魔-无</el-radio>
            <el-radio v-model="form.shangku" label="2">巨门爆发</el-radio>
            <el-radio v-model="form.shangku" label="3">斗plus</el-radio>
            <br>
            <el-checkbox label="伤帽-破防+496" name="buff" ></el-checkbox>
            <el-checkbox label="伤衣-攻击+357" name="buff" ></el-checkbox>
            <el-checkbox label="衣帽大附魔如已在面板中体现无需勾选，胖叔叔及推栏配装器面板中不含大附魔属性" name="buff" disabled="" ></el-checkbox>
          </el-checkbox-group>
        </el-form-item>
        <el-form-item label="实战增益" >
          <el-checkbox-group v-model="form.buff">
            <el-checkbox label="提前放灯" name="buff"></el-checkbox>
            <el-checkbox label="起手鬼遁" name="buff"></el-checkbox>
            <el-checkbox label="枭神" name="buff"></el-checkbox>

            <el-checkbox label="袖气" name="buff" ></el-checkbox>
            <el-checkbox label="梅花盾" name="buff"></el-checkbox>
            <br>
            <el-checkbox label="立地成佛" name="buff" ></el-checkbox>
            <el-checkbox label="弘法" name="buff" ></el-checkbox>
            <el-checkbox label="戒火斩" name="buff"></el-checkbox>
            <el-checkbox label="朝圣言" name="buff" ></el-checkbox>
            <el-checkbox label="朝圣言-PLUS" name="buff" ></el-checkbox>
            <el-checkbox label="号令三军" name="buff"></el-checkbox>
            <el-checkbox label="寒啸千军" name="buff" ></el-checkbox>
            <el-checkbox label="振奋" name="buff" ></el-checkbox>
            <br>
            <el-checkbox label="破苍穹" name="buff" ></el-checkbox>
            <el-checkbox label="清涓" name="buff" ></el-checkbox>
            <el-checkbox label="疏狂" name="buff"></el-checkbox>
            <el-checkbox label="分澜" name="buff" ></el-checkbox>
<!--            <el-checkbox label="尾后针" name="buff" v-on:change="weihou"></el-checkbox>-->
<!--            <el-checkbox label="善友" name="buff" v-on:change="shanyou" disabled></el-checkbox>-->

            <el-checkbox label="春节阵·封门" name="buff" style="color: red"></el-checkbox>
            <el-checkbox label="春节阵·朱雀" name="buff" style="color: red"></el-checkbox>

          </el-checkbox-group>
          <el-button @click="zengyifg = true" type="primary" style="margin-left: 16px;" size="mini">
            增益覆盖
          </el-button><a>&nbsp;※多斩杀增益叠加会出现低估的现象</a>
        </el-form-item>
        <el-form-item label="小吃小药" >
          <el-select v-model="form.fuzhuyaopin" style="width: 130px">
            <el-option label="辅助药品-无" value="1" onselect="fuzhuyaopin"></el-option>
            <el-option label="奉天·上品聚魂丹-元气200" value="2" onselect="fuzhuyaopin" style="color: purple"></el-option>
            <el-option label="奉天·中品聚魂丹-元气146" value="3" onselect="fuzhuyaopin" style="color: blue"></el-option>
          </el-select>
          <el-select v-model="form.zengqiangyaopin" style="width: 130px">
            <el-option label="增强药品-无" value="1" onselect="zengqiangyaopin"></el-option>
            <el-option label="奉天·上品展凤散-攻击481" value="2" onselect="zengqiangyaopin" style="color: purple"></el-option>
            <el-option label="奉天·上品破秽散-破防894" value="3" onselect="zengqiangyaopin" style="color: purple"></el-option>
            <el-option label="奉天·上品玉璃散-会心894" value="4" onselect="zengqiangyaopin" style="color: purple"></el-option>
            <el-option label="奉天·上品宁神散-破招894" value="5" onselect="zengqiangyaopin" style="color: purple"></el-option>
            <el-option label="奉天·中品展凤散-攻击349" value="6" onselect="zengqiangyaopin" style="color: blue"></el-option>
          </el-select>
          <el-select v-model="form.fuzhushipin" style="width: 130px">
            <el-option label="辅助食品-无" value="1" onselect="fuzhushipin"></el-option>
            <el-option label="奉天·鱼片砂锅粥-元气156" value="2" onselect="fuzhushipin" style="color: purple"></el-option>
            <el-option label="奉天·鱼头豆腐汤-元气113" value="3" onselect="fuzhushipin" style="color: blue"></el-option>
          </el-select>
          <el-select v-model="form.zengqiangshipin" style="width: 130px">
            <el-option label="增强食品-无" value="1" onselect="zengqiangshipin" ></el-option>
            <el-option label="奉天·灌汤包-攻击374" value="2" onselect="zengqiangshipin" style="color: purple"></el-option>
            <el-option label="奉天·红烧排骨-破防695" value="3" onselect="zengqiangshipin" style="color: purple"></el-option>
            <el-option label="奉天·酸菜鱼-会心695" value="4" onselect="zengqiangshipin" style="color: purple"></el-option>
            <el-option label="奉天·白肉血肠-破招695" value="5" onselect="zengqiangshipin" style="color: purple"></el-option>
            <el-option label="奉天·鲜肉包子-攻击272" value="6" onselect="zengqiangshipin" style="color: blue"></el-option>
          </el-select>
          <el-select v-model="form.wuqimoshi" style="width: 130px">
            <el-option label="武器磨石-无" value="1" onselect="wuqimoshi"></el-option>
            <el-option label="奉天·坠宵熔锭-攻击320" value="2" onselect="wuqimoshi" style="color: purple"></el-option>
            <el-option label="奉天·坠宵磨石-攻击233" value="3" onselect="wuqimoshi" style="color: blue"></el-option>
          </el-select>
          <el-select v-model="form.jiayuancai" style="width: 130px">
            <el-option label="家园烹饪-无" value="1" onselect="jiayuancai"></el-option>
            <el-option label="小炒青菜（青菜+香油+5红辣椒）-攻击149" value="2" onselect="jiayuancai"></el-option>
            <el-option label="炸鱼干（鱼+香油+5料酒）-会心277" value="3" onselect="jiayuancai"></el-option>
            <el-option label="清蒸鲈鱼（鱼+泉水+豆腐+5蒜苗）-破防277" value="4" onselect="jiayuancai"></el-option>
            <el-option label="煎豆腐（豆腐+泉水+香油+5大葱）-破招277" value="5" onselect="jiayuancai"></el-option>
            <el-option label="炖豆腐（豆腐+泉水+香油+5小茴香）-无双277" value="6" onselect="jiayuancai"></el-option>
            <el-option label="创意食品·盛（任意3个25金的家园烹饪材料+1蔬菜/调料）-降低会无招血-增加攻会破无招" value="7" onselect="jiayuancai" disabled></el-option>
            <el-option label="创意食品·盛-攻击402" value="8" onselect="jiayuancai"></el-option>
            <el-option label="创意食品·盛-会心750" value="9" onselect="jiayuancai"></el-option>
            <el-option label="创意食品·盛-破防750" value="10" onselect="jiayuancai"></el-option>
            <el-option label="创意食品·盛-破招750" value="11" onselect="jiayuancai"></el-option>
            <el-option label="创意食品·盛-无双750" value="12" onselect="jiayuancai"></el-option>
          </el-select>

          <el-select v-model="form.jiayuanjiu" style="width: 130px">
            <el-option label="家园酿酒-无" value="1" onselect="jiayuanjiu"></el-option>
            <el-option label="女儿红（糯米+七秀水）-今朝醉-加速111" value="2" onselect="jiayuanjiu"></el-option>
            <el-option label="女儿红（糯米+七秀水）-六日醉-加速222" value="3" onselect="jiayuanjiu"></el-option>
            <el-option label="女儿红（糯米+七秀水）-旬又三-加速444" value="4" onselect="jiayuanjiu"></el-option>
            <el-option label="状元红（糯米+藏剑水）-今朝醉-元气24" value="5" onselect="jiayuanjiu"></el-option>
            <el-option label="状元红（糯米+藏剑水）-六日醉-元气48" value="6" onselect="jiayuanjiu"></el-option>
            <el-option label="状元红（糯米+藏剑水）-旬又三-元气96" value="7" onselect="jiayuanjiu"></el-option>
          </el-select>
          <el-select v-model="form.jierishiwu" style="width: 130px">
            <el-option label="节日食物-无" value="1" onselect="jierishiwu"></el-option>
<!--            <el-option label="佳·赤豆薏米粥-攻击479" value="2" onselect="jierishiwu"></el-option>-->
<!--            <el-option label="赤豆薏米粥-攻击157" value="3" onselect="jierishiwu"></el-option>-->
<!--            <el-option label="佳·赤豆薏米粥-破防891" value="4" onselect="jierishiwu"></el-option>-->
<!--            <el-option label="青丝瘦肉粥-破防292" value="5" onselect="jierishiwu"></el-option>-->
<!--            <el-option label="恩荣宴-全属性45" value="6" onselect="jierishiwu"></el-option>-->
<!--            <el-option label="绿豆糕-攻击192" value="7" onselect="jierishiwu"></el-option>-->
<!--            <el-option label="芝麻杆-攻击577" value="8" onselect="jierishiwu"></el-option>-->
<!--            <el-option label="蛋黄粽-攻击493" value="9" onselect="jierishiwu"></el-option>-->
<!--            <el-option label="瓜仁粽-无双6%" value="10" onselect="jierishiwu"></el-option>-->
<!--            <el-option label="瘦肉粽-会心6%" value="11" onselect="jierishiwu"></el-option>-->

<!--            <el-option label="佳·赤豆薏米粥-攻击327会心609" value="12" onselect="jierishiwu" style="color: purple"></el-option>-->
<!--            <el-option label="赤豆薏米粥-攻击107会心200" value="13" onselect="jierishiwu" style="color: blue"></el-option>-->
<!--            <el-option label="佳·青丝瘦肉粥-攻击327破防609" value="14" onselect="jierishiwu" style="color: purple"></el-option>-->
<!--            <el-option label="青丝瘦肉粥-攻击107破防200" value="15" onselect="jierishiwu" style="color: blue"></el-option>-->
<!--            <el-option label="佳·桂圆莲子粥-攻击327无双609" value="16" onselect="jierishiwu" style="color: purple"></el-option>-->
<!--            <el-option label="桂圆莲子粥-攻击107无双200" value="17" onselect="jierishiwu" style="color: blue"></el-option>-->
          </el-select>
          <el-checkbox-group v-model="form.med">
            <el-checkbox label="奉天·二十四桥" name="med" ></el-checkbox>
            <el-checkbox label="蒸鱼" name="med" ></el-checkbox>
            <el-checkbox label="水煮鱼" name="med" ></el-checkbox>
            <el-checkbox label="同泽宴" name="med" ></el-checkbox>
          </el-checkbox-group>
        </el-form-item>

<!--        <el-form-item label="变卦策略">-->
<!--          <el-button @click="guaxiang = true" type="primary" style="margin-left: 16px;">-->
<!--            点击修改-->
<!--          </el-button>-->
<!--        </el-form-item>-->
        <el-form-item label="计算模式">
          <el-checkbox-group :max="1" v-model="form.models_check">
            <el-checkbox v-for="model in form.models" :label="model" :key="model">{{model}}</el-checkbox>
          </el-checkbox-group>
        </el-form-item>
        <el-form-item label="延迟">
          <el-radio-group v-model="form.ping" style="margin-left: 0%">
            <el-radio :label="1" >0延迟</el-radio>
            <el-radio :label="2" >正常玩家(0-60ms)</el-radio>
            <el-radio :label="3" >中PING战士(60-120ms)</el-radio>
            <el-radio :label="4" >高PING战士(120+ms)</el-radio>
          </el-radio-group>
        </el-form-item>
<!--        <el-drawer-->
<!--          title="卦象"-->
<!--          :visible.sync="guaxiang"-->
<!--          :with-header="false">-->
<!--          <div>-->
<!--            <el-form-item label="山卦">-->
<!--              <el-switch-->
<!--                v-model="form.shan_ifbian"-->
<!--                :onclick="this.shan_bian"-->
<!--                active-color="#ff4949"-->
<!--                active-text="不变卦"-->
<!--                inactive-color="#13ce66"-->
<!--                inactive-text="变卦"-->
<!--              >-->
<!--              </el-switch>-->
<!--              <div class="block">-->
<!--                <span class="demonstration" >变火概率</span>-->
<!--                <el-slider v-model="form.shan_bian_huo"  v-bind:disabled="form.shan_ifbian" show-input></el-slider>-->
<!--              </div>-->
<!--            </el-form-item>-->
<!--            <el-form-item label="水卦">-->
<!--              <el-switch-->
<!--                v-model="form.shui_ifbian"-->
<!--                :onclick="this.shui_bian"-->
<!--                active-color="#ff4949"-->
<!--                active-text="不变卦"-->
<!--                inactive-color="#13ce66"-->
<!--                inactive-text="变卦"-->
<!--              >-->
<!--              </el-switch>-->
<!--              <div class="block">-->
<!--                <span class="demonstration" >变山概率</span>-->
<!--                <el-slider v-model="form.shui_bian_shan" v-bind:disabled="form.shui_ifbian" show-input></el-slider>-->
<!--              </div>-->
<!--            </el-form-item>-->
<!--            <el-form-item label="火卦">-->
<!--              <el-switch-->
<!--                v-model="form.huo_ifbian"-->
<!--                :onclick="this.huo_bian"-->
<!--                active-color="#ff4949"-->
<!--                active-text="不变卦"-->
<!--                inactive-color="#13ce66"-->
<!--                inactive-text="变卦"-->
<!--              >-->
<!--              </el-switch>-->
<!--              <div class="block">-->
<!--                <span class="demonstration" >变山概率</span>-->
<!--                <el-slider v-model="form.huo_bian_shan" v-bind:disabled="form.huo_ifbian" show-input></el-slider>-->
<!--              </div>-->
<!--            </el-form-item>-->
<!--          </div>-->

<!--        </el-drawer>-->


        <el-drawer
          title="人物属性"
          :visible.sync="drawer"
          :with-header="false"
          size="50%">
          <body style="overflow: auto">
          <table cellpadding="8">
            <!--          <table>-->
            <tr>
              <td style="width: 30%"><el-tag >基础攻击</el-tag></td>
              <td style="width: 50%"><el-input v-model="form.jichugongji" @input="check_gongji()" ></el-input></td>
              <td style="width: 20%"></td>
            </tr>
            <tr>
              <td style="width: 30%"><el-tag >元气</el-tag></td>
              <td style="width: 50%"><el-input v-model="form.yuanqi" ></el-input></td>
              <td style="width: 20%"></td>
            </tr>
            <tr>
              <td style="width: 30%"><el-tag >加速</el-tag></td>
              <td style="width: 50%"><el-input v-model="form.jiasu" ></el-input></td>
              <td style="width: 20%"></td>
            </tr>
            <tr>
              <td style="width: 30%"><el-tag >会心</el-tag></td>
              <td style="width: 50%"><el-input v-model="form.huixin" ></el-input></td>
              <td style="width: 20%"><span>%</span></td>
            </tr>
            <tr>
              <td style="width: 30%"><el-tag >会效</el-tag></td>
              <td style="width: 50%"><el-input v-model="form.huixiao" ></el-input></td>
              <td style="width: 20%"><span>%</span></td>
            </tr>
            <tr>
              <td style="width: 30%"><el-tag >破防</el-tag></td>
              <td style="width: 50%"><el-input v-model="form.pofang" ></el-input></td>
              <td style="width: 20%"><span>%</span></td>
            </tr>
            <tr>
              <td style="width: 30%"><el-tag >无双</el-tag></td>
              <td style="width: 50%"><el-input v-model="form.wushuang" ></el-input></td>
              <td style="width: 20%"><span>%</span></td>
            </tr>
            <tr>
              <td style="width: 30%"><el-tag >破招</el-tag></td>
              <td style="width: 50%"><el-input v-model="form.pozhao" ></el-input></td>
              <td style="width: 20%"></td>
            </tr>

          </table>
          <el-tag style="margin-left: 3px;color: red">上方数值是否已包含神元加成</el-tag>
          <el-switch
            style="display: block;width: 100%;margin-left: 3px;"
            v-model="form.shenyuan_isinclude"
            active-color="#13ce66"
            inactive-color="#ff4949"
            inactive-text="未包含"
            active-text="已包含"
          >
          </el-switch>

          <br/>
          <div>
            <el-button type="warning" @click="innerDrawer = true" style="margin-left: 3px;">胖叔叔配装属性自动识别</el-button><br/><br/>
            <el-button type="warning" @click=copy_shuxing() style="margin-left: 3px;">当前面板复制（方便保存）</el-button>
            <el-drawer
              title=""
              :append-to-body="true"
              :visible.sync="innerDrawer">
              <body style="overflow: auto">
              <div>
                <el-tag class="log" >
                  <p>打开胖叔叔配装器页面，点击右侧边栏上方的导出。 </p>
                  <p>弹框上方选择导出属性数据，复制结果选择'Json'。</p>
                  <p>粘贴到下方输入框，点击识别。</p>
                </el-tag>
              </div>
              <div>
                <el-input v-model="cha_discriminate" style="width: 50%;margin-left: 3px;"></el-input><br/><br/><br/>
                <el-button type="warning" @click="cha_dis" style="margin-left: 3px;">点击识别</el-button>
              </div>

              </body>
            </el-drawer>
          </div>
          </body>

        </el-drawer>
        <el-drawer
          title="装备对比"
          :visible.sync="huanzhuang"
          :with-header="false"
          size="50%">
          <body style="overflow: auto">
          <table cellpadding="8">
            <tr>
              <td style="width: 20%;color: red;font-size: small">精炼前属性</td>
              <td style="width: 40%">原装备</td>
              <td style="width: 40%">新装备</td>
            </tr>
            <tr>
              <td style="width: 20%"><el-tag>元气</el-tag></td>
              <td style="width: 40%"><el-input v-model="form.huanzhuang.before.yuanqi"></el-input></td>
              <td style="width: 40%"><el-input v-model="form.huanzhuang.after.yuanqi"></el-input></td>
            </tr>
            <tr>
              <td style="width: 20%"><el-tag>攻击</el-tag></td>
              <td style="width: 40%"><el-input v-model="form.huanzhuang.before.gongji"></el-input></td>
              <td style="width: 40%"><el-input v-model="form.huanzhuang.after.gongji"></el-input></td>
            </tr>
            <tr>
              <td style="width: 20%"><el-tag>会心</el-tag></td>
              <td style="width: 40%"><el-input v-model="form.huanzhuang.before.huixin"></el-input></td>
              <td style="width: 40%"><el-input v-model="form.huanzhuang.after.huixin"></el-input></td>
            </tr>
            <tr>
              <td style="width: 20%"><el-tag>会效</el-tag></td>
              <td style="width: 40%"><el-input v-model="form.huanzhuang.before.huixiao"></el-input></td>
              <td style="width: 40%"><el-input v-model="form.huanzhuang.after.huixiao"></el-input></td>
            </tr>
            <tr>
              <td><el-tag>破防</el-tag></td>
              <td style="width: 40%"><el-input v-model="form.huanzhuang.before.pofang"></el-input></td>
              <td style="width: 40%"><el-input v-model="form.huanzhuang.after.pofang"></el-input></td>
            </tr>
            <tr>
              <td style="width: 20%"><el-tag>无双</el-tag></td>
              <td style="width: 40%"><el-input v-model="form.huanzhuang.before.wushuang"></el-input></td>
              <td style="width: 40%"><el-input v-model="form.huanzhuang.after.wushuang"></el-input></td>
            </tr>
            <tr >
              <td style="width: 20%"><el-tag>破招</el-tag></td>
              <td style="width: 40%"><el-input v-model="form.huanzhuang.before.pozhao"></el-input></td>
              <td style="width: 40%"><el-input v-model="form.huanzhuang.after.pozhao"></el-input></td>
            </tr>
            <tr>
              <td style="width: 20%"><el-tag>孔</el-tag></td>
              <td style="width: 40%">
                <el-select v-model="form.huanzhuang.before.kong"  multiple>
                  <el-option label="元气" name="kong1" value="yuanqi"></el-option>
                  <el-option label="攻击" name="kong1" value="gongji"></el-option>
                  <el-option label="会心" name="kong1" value="huixin"></el-option>
                  <el-option label="会效" name="kong1" value="huixiao"></el-option>
                  <el-option label="破防" name="kong1" value="pofang"></el-option>
                  <el-option label="无双" name="kong1"  value="wushuang"></el-option>
                  <el-option label="破招" name="kong1"  value="pozhao"></el-option>
                </el-select>
              </td>
              <td style="width: 40%">
                <el-select v-model="form.huanzhuang.after.kong"  multiple>
                  <el-option label="元气" name="kong1" value="yuanqi"></el-option>
                  <el-option label="攻击" name="kong1" value="gongji"></el-option>
                  <el-option label="会心" name="kong1" value="huixin"></el-option>
                  <el-option label="会效" name="kong1" value="huixiao"></el-option>
                  <el-option label="破防" name="kong1" value="pofang"></el-option>
                  <el-option label="无双" name="kong1"  value="wushuang"></el-option>
                  <el-option label="破招" name="kong1"  value="pozhao"></el-option>
                </el-select>
              </td>
            </tr>
            <tr>
              <td style="width: 20%"><el-tag>精炼等级</el-tag></td>
              <td style="width: 40%">
                <el-select v-model="form.huanzhuang.before.jinglian" >
                  <el-option label="精炼0" name="jinglian_before" value="精炼0"></el-option>
                  <el-option label="精炼1" name="jinglian_before" value="精炼1"></el-option>
                  <el-option label="精炼2" name="jinglian_before" value="精炼2"></el-option>
                  <el-option label="精炼3" name="jinglian_before" value="精炼3"></el-option>
                  <el-option label="精炼4" name="jinglian_before" value="精炼4"></el-option>
                  <el-option label="精炼5" name="jinglian_before"  value="精炼5"></el-option>
                  <el-option label="精炼6" name="jinglian_before"  value="精炼6"></el-option>
                </el-select>
              </td>
              <td style="width: 40%">
                <el-select v-model="form.huanzhuang.after.jinglian" >
                  <el-option label="精炼0" name="jinglian_after" value="精炼0"></el-option>
                  <el-option label="精炼1" name="jinglian_after" value="精炼1"></el-option>
                  <el-option label="精炼2" name="jinglian_after" value="精炼2"></el-option>
                  <el-option label="精炼3" name="jinglian_after" value="精炼3"></el-option>
                  <el-option label="精炼4" name="jinglian_after" value="精炼4"></el-option>
                  <el-option label="精炼5" name="jinglian_after"  value="精炼5"></el-option>
                  <el-option label="精炼6" name="jinglian_after"  value="精炼6"></el-option>
                </el-select>
              </td>
            </tr>
            <tr>
              <td style="width: 20%"><el-button type="success" size="mini" round @click="onSub()" style="margin-left: 3px;" :disabled="isDisabled" :loading="isDisabled">计算DPS</el-button></td>
              <td style="width: 40%">{{huanzhuang_before}}</td>
              <td style="width: 40%">{{huanzhuang_after}}</td>
            </tr>


          </table>
          </body>
        </el-drawer>
        <el-drawer
          title="秘籍"
          :visible.sync="miji"
          :with-header="false">
          <body>
          <div class="container">
            <div class="content">
            <table>
              <tr>
                <div>
                  <el-tag>三星临</el-tag><br>
                  <el-checkbox-group v-model="form.miji_lin"  :max="4">
                    <el-checkbox-button v-for="item in miji_lin" :label="item" :key="item">{{item}}</el-checkbox-button>
                  </el-checkbox-group>
                </div>
              </tr>
              <tr>
                <div>
                  <el-tag>兵主逆</el-tag><br>
                  <el-checkbox-group v-model="form.miji_bing"  :max="4">
                    <el-checkbox-button v-for="item in miji_bing" :label="item" :key="item">{{item}}</el-checkbox-button>
                  </el-checkbox-group>
                </div>
              </tr>
              <tr>
                <div>
                  <el-tag>天斗旋(必须点减调息时间秘籍)</el-tag><br>
                  <el-checkbox-group v-model="form.miji_dou"  :max="3">
                    <el-checkbox-button v-for="item in miji_dou" :label="item" :key="item">{{item}}</el-checkbox-button>
                  </el-checkbox-group>
                </div>
              </tr>
              <tr>
                <div>
                  <el-tag>起卦</el-tag><br>
                  <el-checkbox-group v-model="form.miji_qi"  :max="4">
                    <el-checkbox-button v-for="item in miji_qi" :label="item" :key="item">{{item}}</el-checkbox-button>
                  </el-checkbox-group>
                </div>
              </tr>
              <tr>
                <div>
                  <el-tag>变卦(必须点3本减调息时间秘籍)</el-tag><br>
                  <el-checkbox-group v-model="form.miji_bian"  :max="4">
                    <el-checkbox-button v-for="item in miji_bian" :label="item" :keymiji_bian="item">{{item}}</el-checkbox-button>
                  </el-checkbox-group>
                </div>
              </tr>
              <tr>
                <div>
                  <el-tag>鬼星开穴</el-tag><br>
                  <el-checkbox-group v-model="form.miji_kai"  :max="4">
                    <el-checkbox-button v-for="item in miji_kai" :label="item" :key="item">{{item}}</el-checkbox-button>
                  </el-checkbox-group>
                </div>
              </tr>
            </table>
            </div>
          </div>
          </body>

        </el-drawer>

        <el-button id="jisuandps" ref="jisuandps" type="success"  round @click="onSubmit()" style="margin-left: 16px;" :disabled="isDisabled" :loading="isDisabled">计算</el-button>
        <el-button @click="res = true" round type="primary" style="margin-left: 16px;">
          查看详细
        </el-button> DPS:{{dps}}
        <el-tooltip class="item" effect="dark" content="在不刷脸的情况下，DPS正常应该打到计算器不勾选稳定模式的平均水平（有手就行）。如果差距过大请对比技能数以及技能日志查看自己的循环问题。" placement="top-start">
          <el-button type="info" icon="el-icon-thumb" circle size="mini"></el-button>
        </el-tooltip>
<!--        <div id="myChart" :style="{width: '600px', height: '300px'}"></div>-->
<!--        <br>-->
        <br>
        <br>
        <el-button @click="auth = true" round type="primary" style="margin-left: 16px;">
          测试伤害
        </el-button>
        <el-button @click="skill_logs = true" round type="primary" style="margin-left: 16px;">
          技能日志
        </el-button>
        <el-button @click="skill_sim_logs = true" round type="primary" style="margin-left: 16px;">
          技能简易日志
        </el-button>
      </el-form>


      <el-drawer
        title="DPS统计"
        :visible.sync="res"
        :with-header="false">
        <body>
        <div class="container">
          <div class="content">
        <el-table
          :data="dpsData"
          :key="itemkey"
          style="width: 100%"
          height="80%"
        >
          <el-table-column type="expand">
            <template slot-scope="props">
              <el-form label-position="left" inline class="demo-table-expand">
                <el-form-item label="dps">
                  <el-button size="mini" @click="qiehuan">{{ props.row.dps }}</el-button>
                </el-form-item>
                <el-form-item label="兵主逆">

                  <span v-show="sl">{{ props.row.兵主逆[0] }}</span>
                  <span style="color: #20a0ff" v-show="bf">{{ props.row.兵主逆[1] }}</span>
                </el-form-item>
                <el-form-item label="杀星在尾">

                  <span v-show="sl">{{ props.row.杀星在尾[0] }}</span>
                  <span style="color: #20a0ff" v-show="bf">{{ props.row.杀星在尾[1] }}</span>

                </el-form-item>
                <el-form-item label="天斗旋">

                  <span v-show="sl">{{ props.row.天斗旋[0] }}</span>
                  <span style="color: #20a0ff" v-show="bf">{{ props.row.天斗旋[1] }}</span>

                </el-form-item>
                <el-form-item label="破">

                  <span v-show="sl">{{ props.row.破[0] }}</span>
                  <span style="color: #20a0ff" v-show="bf">{{ props.row.破[1]*3 }}</span>
                </el-form-item>
                <el-form-item label="灵器">

                  <span v-show="sl">{{ props.row.灵器[0] }}</span>
                  <span style="color: #20a0ff" v-show="bf">{{ props.row.灵器[1] }}</span>
                </el-form-item>
                <el-form-item label="三星临">

                  <span v-show="sl">{{ props.row.三星临[0] }}</span>
                  <span style="color: #20a0ff" v-show="bf">{{ props.row.三星临[1] }}</span>
                </el-form-item>
                <el-form-item label="剑风">

                  <span v-show="sl">{{ props.row.剑风[0] }}</span>
                  <span style="color: #20a0ff" v-show="bf">{{ props.row.剑风[1] }}</span>
                </el-form-item>
                <el-form-item label="鬼星开穴">

                  <span v-show="sl">{{ props.row.鬼星开穴[0] }}</span>
                  <span style="color: #20a0ff" v-show="bf">{{ props.row.鬼星开穴[1] }}</span>
                </el-form-item>
                <el-form-item label="卦象·火离">

                  <span v-show="sl">{{ props.row.卦象·火离[0] }}</span>
                  <span style="color: #20a0ff" v-show="bf">{{ props.row.卦象·火离[1] }}</span>
                </el-form-item>
                <el-form-item label="往者定">
                  <span v-show="sl">{{ props.row.往者定[0] }}</span>
                  <span style="color: #20a0ff" v-show="bf">{{ props.row.往者定[1] }}</span>
                </el-form-item>
                <el-form-item label="手附魔">
                  <span v-show="sl">{{ props.row.手附魔[0] }}</span>
                  <span style="color: #20a0ff" v-show="bf">{{ props.row.手附魔[1] }}</span>
                </el-form-item>

                <el-form-item label="89元气提升" >
                  <span>{{ props.row.dps_yuanqi }}</span>
                </el-form-item>
                <el-form-item >
                <el-progress :text-inside="true" :stroke-width="30" :percentage=props.row.dps_yuanqi_per  style="width: 200px;" :color="colors"></el-progress>
                </el-form-item>
                <el-form-item label="214攻击提升" >
                  <span>{{ props.row.dps_gongji }}</span>
                </el-form-item>
                <el-form-item >
                  <el-progress :text-inside="true" :stroke-width="30" :percentage=props.row.dps_gongji_per style="width: 200px;" :color="colors"></el-progress>
                </el-form-item>
                <el-form-item label="397无双提升" >
                  <span>{{ props.row.dps_wushuang }}</span>
                </el-form-item>
                <el-form-item >
                  <el-progress :text-inside="true" :stroke-width="30" :percentage=props.row.dps_wushuang_per style="width: 200px;" :color="colors"></el-progress>
                </el-form-item>
                <el-form-item label="397破防提升" >
                  <span>{{ props.row.dps_pofang }}</span>
                </el-form-item>
                <el-form-item >
                  <el-progress :text-inside="true" :stroke-width="30" :percentage=props.row.dps_pofang_per style="width: 200px;" :color="colors"></el-progress>
                </el-form-item>
                <el-form-item label="397会心提升" >
                  <span>{{ props.row.dps_huixin }}</span>
                </el-form-item>
                <el-form-item >
                  <el-progress :text-inside="true" :stroke-width="30" :percentage=props.row.dps_huixin_per style="width: 200px;" :color="colors"></el-progress>
                </el-form-item>
                <el-form-item label="397会效提升">
                  <span>{{ props.row.dps_huixiao }}</span>
                </el-form-item>
                <el-form-item >
                  <el-progress :text-inside="true" :stroke-width="30" :percentage=props.row.dps_huixiao_per style="width: 200px;" :color="colors"></el-progress>
                </el-form-item>
                <el-form-item label="397破招提升" >
                  <span>{{ props.row.dps_pozhao }}</span>
                </el-form-item>
                <el-form-item >
                  <el-progress :text-inside="true" :stroke-width="30" :percentage=props.row.dps_pozhao_per style="width: 200px;" :color="colors"></el-progress>
                </el-form-item>
              </el-form>
            </template>

          </el-table-column>
          <el-table-column
            label="dps"
            prop="dps">
          </el-table-column>
          <el-table-column
            label="山卦覆盖率"
            >
            <template slot-scope="scope" >
              <el-progress :percentage="scope.row.shangenfg" :color="colors" style="width: 150px" ></el-progress>
            </template>
          </el-table-column>

        </el-table>
          </div>
        </div>
        </body>
      </el-drawer>
      <el-drawer
        title="测试伤害"
        :visible.sync="auth"
        :with-header="false">
        <table>
          <tr v-for="key in authData">
            <td>{{key[0]}}</td>
            <td>{{key[1]}}</td>
            <td>{{key[2]}}</td>

          </tr>
        </table>
        <el-button type="primary" @click="auth_dps" style="margin-left: 16px;">测试伤害</el-button><br>
        <label>测试时请注意正夏明心奇穴</label>
      </el-drawer>
      <el-drawer
        title="技能日志"
        :visible.sync="skill_logs"
        :with-header="false">
        <body>
        <div class="container">
          <div class="content">
          <el-table
            :data="skill_log"
            style="width: 100%"
            height="700">
            <el-table-column
              fixed
              prop="time_stamp"
              label="时间戳"
              width="150">
            </el-table-column>
            <el-table-column
              fixed
              prop="name"
              label="技能名称"
              width="150">
            </el-table-column>
            <el-table-column
              fixed
              prop="damage"
              label="伤害预期"
              width="150">
            </el-table-column>
          </el-table>
        </div>
        </div>
        </body>
      </el-drawer>
      <el-drawer
        title="技能简易日志"
        :visible.sync="skill_sim_logs"
        :with-header="false">
        <body>
        <div class="container">
          <div class="content">
        <div>
          <el-table
            :data="skill_sim_log"
            style="width: 100%"
            height="700">
            <el-table-column
              fixed
              prop="time_stamp"
              label="时间戳"
              width="150">
            </el-table-column>
            <el-table-column
              fixed
              prop="name"
              label="技能名称"
              width="150">
            </el-table-column>
            <el-table-column
              fixed
              prop="type"
              label="施放类型"
              width="150">
            </el-table-column>
          </el-table>
        </div>
          </div>
        </div>
        </body>
      </el-drawer>
      <el-dialog
      title="增益覆盖"
      :visible.sync="zengyifg"
      :with-header="false"
      width="20%"
    >


      <div>
        <table>
          <tr>
            <td>
              <el-tag >朝圣言</el-tag>
            </td>
            <td>
              <el-input style="width: 60px" v-model="form.zengyifugai.chaoshengyan" size="small" ></el-input><a>%</a>
            </td>
          </tr>
          <tr>
            <td>
              <el-tag >梅花盾</el-tag>
            </td>
            <td>
              <el-input style="width: 60px" v-model="form.zengyifugai.meihuadun" size="small"></el-input><a>%</a>
            </td>
          </tr>
          <tr>
            <td>
              <el-tag >弘法</el-tag>
            </td>
            <td>
              <el-input style="width: 60px" v-model="form.zengyifugai.hongfa" size="small"></el-input><a>%</a>
            </td>
          </tr>
          <tr>
            <td>
              <el-tag >寒啸千军</el-tag>
            </td>
            <td>
              <el-input style="width: 60px" v-model="form.zengyifugai.hanxiaoqianjun" size="small"></el-input><a>%</a>
            </td>
          </tr>
          <tr>
            <td>
              <el-tag >振奋</el-tag>
            </td>
            <td>
              <el-input style="width: 60px" v-model="form.zengyifugai.zhenfen" size="small"></el-input>
            </td>
          </tr>
          <tr>
            <td>
              <el-tag >分澜</el-tag>
            </td>
            <td>
              <el-input style="width: 60px" v-model="form.zengyifugai.fenlan" size="small"></el-input><a>%</a>
            </td>
          </tr>
          <tr>
            <td>
              <el-tag >疏狂</el-tag>
            </td>
            <td>
              <el-input style="width: 60px" v-model="form.zengyifugai.shukuang" size="small"></el-input><a>%</a>
            </td>
          </tr>
          <tr>
            <td>
              <el-tag >枭神</el-tag>
            </td>
            <td>
              <el-input style="width: 60px" v-model="form.zengyifugai.xiaoshen" size="small"></el-input><a>%</a>
            </td>
          </tr>

          <tr>
            <td>
              <el-tag style="margin-left: 3px;color: red">战斗时长</el-tag>
              <el-switch
                style="display: block;width: 100%;margin-left: 3px;"
                v-model="form.zengyifugai.fenzhong"
                active-color="#13ce66"
                inactive-color="#ff4949"
                inactive-text="3分钟"
                active-text="5分钟"
              >
              </el-switch></td>
          </tr>

        </table>
      </div>

    </el-dialog>
      <el-dialog
        title="计算器内置配装器"
        :visible.sync="peizhuang"
        :with-header="false"
        width="80%"
      >
        <div>
        <el-button v-show="false" id="cal_shu" ref="cal_shu" type="primary" size="mini" @click="cal_zhuangbeishuxing">刷新数据</el-button>
          <table>
            <tr>
              <td>

              </td>
            </tr>
            <tr>
              <td>
                <label>部位</label>
              </td>
              <td>
                <label>装备名称</label>
              </td>
              <td>
                <label>精炼等级</label>
              </td>
              <td>
              </td>
              <td >
                <label>孔1</label>
              </td>
              <td>
              </td>
              <td >
                <label>孔2</label>
              </td>
              <td>
              </td>
              <td >
                <label>孔3</label>
              </td>
              <td>
                <label>附魔</label>
              </td>
              <td style="width: auto"><label style="margin-left: 10%">属性</label></td>
              <td><label>大附魔</label></td>
            </tr>
            <tr>
              <td>
                <el-tag >帽子</el-tag>
              </td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_dic.hat[0]" @change="zhuangbei_posi(zhuangbei.zhuangbei_dic.hat[0],'hat'),click_refresh()"   style="width: 240px;" @click.native="che_zb_list('hat')"  filterable placeholder="请选择">
                  <el-option
                    v-for="item in this.zhuangbei.hat_list"
                    :key="item[0]"
                    :label="item[1]"
                    :value="item[0]"

                  >
                    <a style="font-size: x-small;color: #97a8be">{{item[3]}}</a><a style="margin-left:1%;">{{item[1]}}</a><a style="margin-left:2%;font-size: x-small;color: #97a8be">&nbsp;{{item[4]}}</a>
                  </el-option>
                </el-select>
              </td>
              <td >
                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.hat[0]" style="width: 60px">
                </el-select>
              </td>
              <td>{{this.zhuangbei.zhuangbei_jinglian_dic.hat[1][0][0]}}</td>
              <td>

<!--                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.hat[1][0][1]" @change="click_wuxing()" clearable ref="hat_kong1" placeholder=""  style="width:80px">-->
<!--                  <el-option value="8"><img src="../home/pve/image/8.png" height="36px" ></el-option>-->
<!--                  <el-option value="7"><img src="../home/pve/image/7.png" height="36px" ></el-option>-->
<!--                  <el-option value="6"><img src="../home/pve/image/6.png" height="36px" ></el-option>-->
<!--                  <el-option value="5"><img src="../home/pve/image/5.png" height="36px" ></el-option>-->
<!--                  <el-option value="4"><img src="../home/pve/image/4.png" height="36px" ></el-option>-->
<!--                  <el-option value="3"><img src="../home/pve/image/3.png" height="36px" ></el-option>-->
<!--                  <el-option value="2"><img src="../home/pve/image/2.png" height="36px" ></el-option>-->
<!--                  <el-option value="1"><img src="../home/pve/image/1.png" height="36px" ></el-option>-->
<!--                </el-select>-->
                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.hat[1][0][1]" @change="click_refresh()" clearable  placeholder=""  style="width:80px">
                  <el-option
                    v-for="item in wuxingshi_image"
                    :key="item.id"
                    :label="item.id"
                    :value="item.id">
                    <img  :src="item.src" style="height: 36px">
                  </el-option>
                </el-select>
              </td>
              <td>{{this.zhuangbei.zhuangbei_jinglian_dic.hat[1][1][0]}}</td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.hat[1][1][1]" @change="click_refresh()" clearable  placeholder=""  style="width:80px">
                  <el-option
                    v-for="item in wuxingshi_image"
                    :key="item.id"
                    :label="item.id"
                    :value="item.id">
                    <img  :src="item.src" style="height: 36px">
                  </el-option>
                </el-select>
              </td>
              <td></td>
              <td></td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.hat[2]"  @change="click_refresh()"  clearable   placeholder="请选择">
                  <el-option
                    v-for="item in fumo_option.toujiao"
                    :key="item"
                    :label="item"
                    :value="item"
                  >

                  </el-option>
                </el-select>
              </td>
              <td>

                <label style="margin-left: 10%;">元气：{{this.zhuangbei_shuxing.yuanqi}}</label>
              </td>
              <td>
                <el-checkbox-group v-model="form.buff">
                  <el-checkbox label="伤帽-破防+496" @change="click_refresh" name="buff" ></el-checkbox>
                </el-checkbox-group>
              </td>
            </tr>
            <tr>
              <td>
                <el-tag >上衣</el-tag>
              </td>

              <td>
                <el-select v-model="zhuangbei.zhuangbei_dic.jacket[0]" @change="zhuangbei_posi(zhuangbei.zhuangbei_dic.jacket[0],'jacket'),click_refresh()" style="width: 240px" @click.native="che_zb_list('jacket')" filterable placeholder="请选择">
                  <el-option
                    v-for="item in this.zhuangbei.jacket_list"
                    :key="item[0]"
                    :label="item[1]"
                    :value="item[0]"
                  >
                    <a style="font-size: x-small;color: #97a8be">{{item[3]}}</a><a style="margin-left:1%;">{{item[1]}}</a><a style="margin-left:2%;font-size: x-small;color: #97a8be">&nbsp;{{item[4]}}</a>
                  </el-option>
                </el-select>
              </td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.jacket[0]" style="width: 60px">

                </el-select>
              </td>
              <td>{{this.zhuangbei.zhuangbei_jinglian_dic.jacket[1][0][0]}}</td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.jacket[1][0][1]" @change="click_refresh()" clearable  placeholder=""  style="width:80px">
                  <el-option
                    v-for="item in wuxingshi_image"
                    :key="item.id"
                    :label="item.id"
                    :value="item.id">
                    <img  :src="item.src" style="height: 36px">
                  </el-option>
                </el-select>
              </td>
              <td>{{this.zhuangbei.zhuangbei_jinglian_dic.jacket[1][1][0]}}</td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.jacket[1][1][1]" @change="click_refresh()" clearable  placeholder=""  style="width:80px">
                  <el-option
                    v-for="item in wuxingshi_image"
                    :key="item.id"
                    :label="item.id"
                    :value="item.id">
                    <img  :src="item.src" style="height: 36px">
                  </el-option>
                </el-select>
              </td>
              <td></td>
              <td></td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.jacket[2]" clearable  @change="click_refresh()"   placeholder="请选择">
                  <el-option
                    v-for="item in fumo_option.yiyao"
                    :key="item"
                    :label="item"
                    :value="item"
                  >

                  </el-option>
                </el-select>
              </td>
              <td><label style="margin-left: 10%">基础攻击：{{this.zhuangbei_shuxing.jichugongji}}</label></td>
              <td>
                <el-checkbox-group v-model="form.buff">
                  <el-checkbox label="伤衣-攻击+357" @change="click_refresh" name="buff" ></el-checkbox>
                </el-checkbox-group>
              </td>

            </tr>
            <tr>
              <td>
                <el-tag >腰带</el-tag>
              </td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_dic.belt[0]" @change="zhuangbei_posi(zhuangbei.zhuangbei_dic.belt[0],'belt'),click_refresh()" style="width: 240px" @click.native="che_zb_list('belt')" filterable placeholder="请选择">
                  <el-option
                    v-for="item in this.zhuangbei.belt_list"
                    :key="item[0]"
                    :label="item[1]"
                    :value="item[0]"
                  >
                    <a style="font-size: x-small;color: #97a8be">{{item[3]}}</a><a style="margin-left:1%;">{{item[1]}}</a><a style="margin-left:2%;font-size: x-small;color: #97a8be">&nbsp;{{item[4]}}</a>
                  </el-option>
                </el-select>
              </td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.belt[0]" style="width: 60px">
                  <!--                  <el-option-->
                  <!--                    v-for="index in re_check_hat"-->
                  <!--                    :key="index"-->
                  <!--                    :label="index"-->
                  <!--                    :value="index"-->
                  <!--                  >-->
                  <!--                  </el-option>-->
                </el-select>
              </td>
              <td>{{this.zhuangbei.zhuangbei_jinglian_dic.belt[1][0][0]}}</td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.belt[1][0][1]" @change="click_refresh()" clearable  placeholder=""  style="width:80px">
                  <el-option
                    v-for="item in wuxingshi_image"
                    :key="item.id"
                    :label="item.id"
                    :value="item.id">
                    <img  :src="item.src" style="height: 36px">
                  </el-option>
                </el-select>
              </td>
              <td>{{this.zhuangbei.zhuangbei_jinglian_dic.belt[1][1][0]}}</td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.belt[1][1][1]" @change="click_refresh()" clearable  placeholder=""  style="width:80px">
                  <el-option
                    v-for="item in wuxingshi_image"
                    :key="item.id"
                    :label="item.id"
                    :value="item.id">
                    <img  :src="item.src" style="height: 36px">
                  </el-option>
                </el-select>
              </td>
              <td></td>
              <td></td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.belt[2]" clearable @change="click_refresh()"   placeholder="请选择">
                  <el-option
                    v-for="item in fumo_option.yiyao"
                    :key="item"
                    :label="item"
                    :value="item"
                  >
                  </el-option>
                </el-select>
              </td>
              <td><label style="margin-left: 10%">面板攻击：{{this.zhuangbei_shuxing.fin_gongji}}</label></td>
              <td>
                <el-checkbox-group v-model="form.buff">
                  <el-checkbox label="伤腰大附魔" name="buff" ></el-checkbox>
                </el-checkbox-group>
              </td>

            </tr>
            <tr>
              <td>
                <el-tag >护手</el-tag>
              </td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_dic.wrist[0]" @change="zhuangbei_posi(zhuangbei.zhuangbei_dic.wrist[0],'wrist'),click_refresh()" style="width: 240px" @click.native="che_zb_list('wrist')" filterable placeholder="请选择">
                  <el-option
                    v-for="item in this.zhuangbei.wrist_list"
                    :key="item[0]"
                    :label="item[1]"
                    :value="item[0]"
                  >
                    <a style="font-size: x-small;color: #97a8be">{{item[3]}}</a><a style="margin-left:1%;">{{item[1]}}</a><a style="margin-left:2%;font-size: x-small;color: #97a8be">&nbsp;{{item[4]}}</a>
                  </el-option>
                </el-select>
              </td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.wrist[0]" style="width: 60px">
                  <!--                  <el-option-->
                  <!--                    v-for="index in re_check_hat"-->
                  <!--                    :key="index"-->
                  <!--                    :label="index"-->
                  <!--                    :value="index"-->
                  <!--                  >-->
                  <!--                  </el-option>-->
                </el-select>
              </td>
              <td>{{this.zhuangbei.zhuangbei_jinglian_dic.wrist[1][0][0]}}</td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.wrist[1][0][1]" @change="click_refresh()" clearable  placeholder=""  style="width:80px">
                  <el-option
                    v-for="item in wuxingshi_image"
                    :key="item.id"
                    :label="item.id"
                    :value="item.id">
                    <img  :src="item.src" style="height: 36px">
                  </el-option>
                </el-select>
              </td>
              <td>{{this.zhuangbei.zhuangbei_jinglian_dic.wrist[1][1][0]}}</td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.wrist[1][1][1]" @change="click_refresh()" clearable  placeholder=""  style="width:80px">
                  <el-option
                    v-for="item in wuxingshi_image"
                    :key="item.id"
                    :label="item.id"
                    :value="item.id">
                    <img  :src="item.src" style="height: 36px">
                  </el-option>
                </el-select>
              </td>
              <td></td>
              <td></td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.wrist[2]"  clearable @change="click_refresh()"   placeholder="请选择">
                  <el-option
                    v-for="item in fumo_option.shouku"
                    :key="item"
                    :label="item"
                    :value="item"
                  >

                  </el-option>
                </el-select>
              </td>
              <td><label style="margin-left: 10%">会心：{{this.zhuangbei_shuxing.huixin_per}}%({{this.zhuangbei_shuxing.huixin}})</label></td>
              <td>
                <el-checkbox-group v-model="form.buff" >
                  <el-checkbox label="伤手大附魔" name="buff" ></el-checkbox>
                </el-checkbox-group>
              </td>
            </tr>
            <tr>
              <td>
                <el-tag >下装</el-tag>
              </td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_dic.bottoms[0]" @change="zhuangbei_posi(zhuangbei.zhuangbei_dic.bottoms[0],'bottoms'),click_refresh()" style="width: 240px" @click.native="che_zb_list('bottoms')" filterable placeholder="请选择">
                  <el-option
                    v-for="item in this.zhuangbei.bottoms_list"
                    :key="item[0]"
                    :label="item[1]"
                    :value="item[0]"
                  >
                    <a style="font-size: x-small;color: #97a8be">{{item[3]}}</a><a style="margin-left:1%;">{{item[1]}}</a><a style="margin-left:2%;font-size: x-small;color: #97a8be">&nbsp;{{item[4]}}</a>
                  </el-option>
                </el-select>
              </td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.bottoms[0]"  style="width: 60px">
                  <!--                  <el-option-->
                  <!--                    v-for="index in re_check_hat"-->
                  <!--                    :key="index"-->
                  <!--                    :label="index"-->
                  <!--                    :value="index"-->
                  <!--                  >-->
                  <!--                  </el-option>-->
                </el-select>
              </td>
              <td>{{this.zhuangbei.zhuangbei_jinglian_dic.bottoms[1][0][0]}}</td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.bottoms[1][0][1]" @change="click_refresh()" clearable  placeholder=""  style="width:80px">
                  <el-option
                    v-for="item in wuxingshi_image"
                    :key="item.id"
                    :label="item.id"
                    :value="item.id">
                    <img  :src="item.src" style="height: 36px">
                  </el-option>
                </el-select>
              </td>
              <td>{{this.zhuangbei.zhuangbei_jinglian_dic.bottoms[1][1][0]}}</td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.bottoms[1][1][1]" @change="click_refresh()" clearable  placeholder=""  style="width:80px">
                  <el-option
                    v-for="item in wuxingshi_image"
                    :key="item.id"
                    :label="item.id"
                    :value="item.id">
                    <img  :src="item.src" style="height: 36px">
                  </el-option>
                </el-select>
              </td>
              <td></td>
              <td></td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.bottoms[2]"  clearable  @change="click_refresh()"  placeholder="请选择">
                  <el-option
                    v-for="item in fumo_option.shouku"
                    :key="item"
                    :label="item"
                    :value="item"
                  >

                  </el-option>
                </el-select>
              </td>
              <td><label style="margin-left: 10%">会效：{{this.zhuangbei_shuxing.huixiao_per}}%({{this.zhuangbei_shuxing.huixiao}})</label></td>

            </tr>
            <tr>
              <td>
                <el-tag >鞋子</el-tag>
              </td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_dic.shoes[0]" @change="zhuangbei_posi(zhuangbei.zhuangbei_dic.shoes[0],'shoes'),click_refresh()" style="width: 240px" @click.native="che_zb_list('shoes')" filterable placeholder="请选择">
                  <el-option
                    v-for="item in this.zhuangbei.shoes_list"
                    :key="item[0]"
                    :label="item[1]"
                    :value="item[0]"
                  >
                    <a style="font-size: x-small;color: #97a8be">{{item[3]}}</a><a style="margin-left:1%;">{{item[1]}}</a><a style="margin-left:2%;font-size: x-small;color: #97a8be">&nbsp;{{item[4]}}</a>
                  </el-option>
                </el-select>
              </td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.shoes[0]" style="width: 60px">
                  <!--                  <el-option-->
                  <!--                    v-for="index in re_check_hat"-->
                  <!--                    :key="index"-->
                  <!--                    :label="index"-->
                  <!--                    :value="index"-->
                  <!--                  >-->
                  <!--                  </el-option>-->
                </el-select>
              </td>
              <td>{{this.zhuangbei.zhuangbei_jinglian_dic.shoes[1][0][0]}}</td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.shoes[1][0][1]" @change="click_refresh()" clearable  placeholder=""  style="width:80px">
                  <el-option
                    v-for="item in wuxingshi_image"
                    :key="item.id"
                    :label="item.id"
                    :value="item.id">
                    <img  :src="item.src" style="height: 36px">
                  </el-option>
                </el-select>
              </td>
              <td>{{this.zhuangbei.zhuangbei_jinglian_dic.shoes[1][1][0]}}</td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.shoes[1][1][1]" @change="click_refresh()" clearable  placeholder=""  style="width:80px">
                  <el-option
                    v-for="item in wuxingshi_image"
                    :key="item.id"
                    :label="item.id"
                    :value="item.id">
                    <img  :src="item.src" style="height: 36px">
                  </el-option>
                </el-select>
              </td>
              <td></td>
              <td></td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.shoes[2]" clearable  @change="click_refresh()"   placeholder="请选择">
                  <el-option
                    v-for="item in fumo_option.toujiao"
                    :key="item"
                    :label="item"
                    :value="item"
                  >

                  </el-option>
                </el-select>
              </td>
              <td><label style="margin-left: 10%">破防：{{this.zhuangbei_shuxing.fin_pofang_per}}%({{this.zhuangbei_shuxing.fin_pofang}})</label></td>

            </tr>
            <tr>
              <td>
                <el-tag >项链</el-tag>
              </td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_dic.necklace[0]" @change="zhuangbei_posi(zhuangbei.zhuangbei_dic.necklace[0],'necklace'),click_refresh()" style="width: 240px" @click.native="che_zb_list('necklace')" filterable placeholder="请选择">
                  <el-option
                    v-for="item in this.zhuangbei.necklace_list"
                    :key="item[0]"
                    :label="item[1]"
                    :value="item[0]"
                  >
                    <a style="font-size: x-small;color: #97a8be">{{item[3]}}</a><a style="margin-left:1%;">{{item[1]}}</a><a style="margin-left:2%;font-size: x-small;color: #97a8be">&nbsp;{{item[4]}}</a>
                  </el-option>
                </el-select>
              </td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.necklace[0]" style="width: 60px">
                  <!--                  <el-option-->
                  <!--                    v-for="index in re_check_hat"-->
                  <!--                    :key="index"-->
                  <!--                    :label="index"-->
                  <!--                    :value="index"-->
                  <!--                  >-->
                  <!--                  </el-option>-->
                </el-select>
              </td>
              <td>{{this.zhuangbei.zhuangbei_jinglian_dic.necklace[1][0][0]}}</td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.necklace[1][0][1]" @change="click_refresh()" clearable  placeholder=""  style="width:80px">
                  <el-option
                    v-for="item in wuxingshi_image"
                    :key="item.id"
                    :label="item.id"
                    :value="item.id">
                    <img  :src="item.src" style="height: 36px">
                  </el-option>
                </el-select>
              </td>
              <td></td>
              <td></td>
              <td></td>
              <td></td>
              <td></td>
              <td><label style="margin-left: 10%">无双：{{this.zhuangbei_shuxing.wushuang_per}}%({{this.zhuangbei_shuxing.wushuang}})</label></td>

            </tr>
            <tr>
              <td>
                <el-tag >腰坠</el-tag>
              </td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_dic.pendant[0]" @change="zhuangbei_posi(zhuangbei.zhuangbei_dic.pendant[0],'pendant'),click_refresh()" style="width: 240px" @click.native="che_zb_list('pendant')" filterable placeholder="请选择">
                  <el-option
                    v-for="item in this.zhuangbei.pendant_list"
                    :key="item[0]"
                    :label="item[1]"
                    :value="item[0]"
                  >
                    <a style="font-size: x-small;color: #97a8be">{{item[3]}}</a><a style="margin-left:1%;">{{item[1]}}</a><a style="margin-left:2%;font-size: x-small;color: #97a8be">&nbsp;{{item[4]}}</a>
                  </el-option>
                </el-select>
              </td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.pendant[0]" style="width: 60px">
                  <!--                  <el-option-->
                  <!--                    v-for="index in re_check_hat"-->
                  <!--                    :key="index"-->
                  <!--                    :label="index"-->
                  <!--                    :value="index"-->
                  <!--                  >-->
                  <!--                  </el-option>-->
                </el-select>
              </td>
              <td>{{this.zhuangbei.zhuangbei_jinglian_dic.pendant[1][0][0]}}</td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.pendant[1][0][1]" @change="click_refresh()" clearable  placeholder=""  style="width:80px">
                  <el-option
                    v-for="item in wuxingshi_image"
                    :key="item.id"
                    :label="item.id"
                    :value="item.id">
                    <img  :src="item.src" style="height: 36px">
                  </el-option>
                </el-select>
              </td>
              <td></td>
              <td></td>
              <td></td>
              <td></td>
              <td></td>
              <td><label style="margin-left: 10%">破招：{{this.zhuangbei_shuxing.pozhao}}</label></td>

            </tr>
            <tr>
              <td>
                <el-tag >戒指</el-tag>
              </td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_dic.ring_1[0]" @change="zhuangbei_posi(zhuangbei.zhuangbei_dic.ring_1[0],'ring_1'),click_refresh()" style="width: 240px" @click.native="che_zb_list('ring')" filterable placeholder="请选择">
                  <el-option
                    v-for="item in this.zhuangbei.ring_list"
                    :key="item[0]"
                    :label="item[1]"
                    :value="item[0]"
                  >
                    <a style="font-size: x-small;color: #97a8be">{{item[3]}}</a><a style="margin-left:1%;">{{item[1]}}</a><a style="margin-left:2%;font-size: x-small;color: #97a8be">&nbsp;{{item[4]}}</a>
                  </el-option>
                </el-select>
              </td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.ring_1[0]" style="width: 60px">
                  <!--                  <el-option-->
                  <!--                    v-for="index in re_check_hat"-->
                  <!--                    :key="index"-->
                  <!--                    :label="index"-->
                  <!--                    :value="index"-->
                  <!--                  >-->
                  <!--                  </el-option>-->
                </el-select>
              </td>
              <td></td>
              <td></td>
              <td></td>
              <td></td>
              <td></td>
              <td></td>

              <td>
                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.ring_1[2]"  clearable @change="click_refresh()"   placeholder="请选择">
                  <el-option
                    v-for="item in fumo_option.jiezhi"
                    :key="item"
                    :label="item"
                    :value="item"
                  >

                  </el-option>
                </el-select>
              </td>
              <td><label style="margin-left: 10%">加速：{{this.zhuangbei_shuxing.jiasu}}</label></td>


            </tr>
            <tr>
              <td>
                <el-tag >戒指</el-tag>
              </td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_dic.ring_2[0]" @change="zhuangbei_posi(zhuangbei.zhuangbei_dic.ring_2[0],'ring_2'),click_refresh()" style="width: 240px" @click.native="che_zb_list('ring')" filterable placeholder="请选择">
                  <el-option
                    v-for="item in this.zhuangbei.ring_list"
                    :key="item[0]"
                    :label="item[1]"
                    :value="item[0]"
                  >
                    <a style="font-size: x-small;color: #97a8be">{{item[3]}}</a><a style="margin-left:1%;">{{item[1]}}</a><a style="margin-left:2%;font-size: x-small;color: #97a8be">&nbsp;{{item[4]}}</a>
                  </el-option>
                </el-select>
              </td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.ring_2[0]" style="width: 60px">

                </el-select>
              </td>
              <td></td>
              <td></td>
              <td></td>
              <td></td>
              <td></td>
              <td></td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.ring_2[2]"  clearable @change="click_refresh()"    placeholder="请选择">
                  <el-option
                    v-for="item in fumo_option.jiezhi"
                    :key="item"
                    :label="item"
                    :value="item"
                  >

                  </el-option>
                </el-select>
              </td>
              <td><el-button style="margin-left: 10%;" type="primary" size="mini" @click="yijianfumo" round>一键附魔镶嵌</el-button></td>
            </tr>
            <tr>
              <td>
                <el-tag >暗器</el-tag>
              </td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_dic.secondaryWeapon[0]" @change="zhuangbei_posi(zhuangbei.zhuangbei_dic.secondaryWeapon[0],'secondaryWeapon'),click_refresh()" style="width: 240px" @click.native="che_zb_list('secondaryWeapon')" filterable placeholder="请选择">
                  <el-option
                    v-for="item in this.zhuangbei.secondaryWeapon_list"
                    :key="item[0]"
                    :label="item[1]"
                    :value="item[0]"
                  >
                    <a style="font-size: x-small;color: #97a8be">{{item[3]}}</a><a style="margin-left:1%;">{{item[1]}}</a><a style="margin-left:2%;font-size: x-small;color: #97a8be">&nbsp;{{item[4]}}</a>
                  </el-option>
                </el-select>
              </td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.secondaryWeapon[0]" style="width: 60px">
                  <!--                  <el-option-->
                  <!--                    v-for="index in re_check_hat"-->
                  <!--                    :key="index"-->
                  <!--                    :label="index"-->
                  <!--                    :value="index"-->
                  <!--                  >-->
                  <!--                  </el-option>-->
                </el-select>
              </td>
              <td>{{this.zhuangbei.zhuangbei_jinglian_dic.secondaryWeapon[1][0][0]}}</td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.secondaryWeapon[1][0][1]" @change="click_refresh()" clearable  placeholder=""  style="width:80px">
                  <el-option
                    v-for="item in wuxingshi_image"
                    :key="item.id"
                    :label="item.id"
                    :value="item.id">
                    <img  :src="item.src" style="height: 36px">
                  </el-option>
                </el-select>
              </td>
              <td></td>
              <td></td>
              <td></td>
              <td></td>
              <td>
                <el-select  v-model="zhuangbei.zhuangbei_jinglian_dic.secondaryWeapon[2]"  clearable   @change="click_refresh()" placeholder="请选择">
                  <el-option
                    v-for="item in fumo_option.anqi"
                    :key="item"
                    :label="item"
                    :value="item"
                  >

                  </el-option>
                </el-select>
              </td>
              <td><el-button style="margin-left: 10%;" type="primary" size="mini" @click="creat_uuid" :disabled="uuid_isDisabled" :loading="uuid_isDisabled" round>生成配装代码</el-button></td>
              <td><label style="margin-left:-60px"><a style="color: red;">←这边可以保存配装↓这边把保存的代码填进去读取！</a></label></td>
            </tr>
            <tr>
              <td>
                <el-tag >武器</el-tag>
              </td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_dic.primaryWeapon[0]" @change="zhuangbei_posi(zhuangbei.zhuangbei_dic.primaryWeapon[0],'primaryWeapon'),click_refresh()" style="width: 240px" @click.native="che_zb_list('primaryWeapon')" filterable placeholder="请选择">
                  <el-option
                    v-for="item in this.zhuangbei.primaryWeapon_list"
                    :key="item[0]"
                    :label="item[1]"
                    :value="item[0]"
                  >
                    <a style="font-size: x-small;color: #97a8be">{{item[3]}}</a><a style="margin-left:1%;">{{item[1]}}</a><a style="margin-left:2%;font-size: x-small;color: #97a8be">&nbsp;{{item[4]}}</a>
                  </el-option>
                </el-select>
              </td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.primaryWeapon[0]"  style="width: 60px">
                  <!--                  <el-option-->
                  <!--                    v-for="index in re_check_hat"-->
                  <!--                    :key="index"-->
                  <!--                    :label="index"-->
                  <!--                    :value="index"-->
                  <!--                  >-->
                  <!--                  </el-option>-->
                </el-select>
              </td>
              <td>{{this.zhuangbei.zhuangbei_jinglian_dic.primaryWeapon[1][0][0]}}</td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.primaryWeapon[1][0][1]" @change="click_refresh()" clearable  placeholder=""  style="width:80px">
                  <el-option
                    v-for="item in wuxingshi_image"
                    :key="item.id"
                    :label="item.id"
                    :value="item.id">
                    <img  :src="item.src" style="height: 36px">
                  </el-option>
                </el-select>
              </td>
              <td>{{this.zhuangbei.zhuangbei_jinglian_dic.primaryWeapon[1][1][0]}}</td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.primaryWeapon[1][1][1]" @change="click_refresh()" clearable  placeholder=""  style="width:80px">
                  <el-option
                    v-for="item in wuxingshi_image"
                    :key="item.id"
                    :label="item.id"
                    :value="item.id">
                    <img  :src="item.src" style="height: 36px">
                  </el-option>
                </el-select>
              </td>
              <td>{{zhuangbei.zhuangbei_jinglian_dic.primaryWeapon[1][2][0]}}</td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.primaryWeapon[1][2][1]" @change="click_refresh()" clearable  placeholder=""  style="width:80px">
                  <el-option
                    v-for="item in wuxingshi_image"
                    :key="item.id"
                    :label="item.id"
                    :value="item.id">
                    <img  :src="item.src" style="height: 36px">
                  </el-option>
                </el-select>
              </td>
              <td>
                <el-select v-model="zhuangbei.zhuangbei_jinglian_dic.primaryWeapon[2]"  clearable  @change="click_refresh()"   placeholder="请选择">
                  <el-option
                    v-for="item in fumo_option.wuqi"
                    :key="item"
                    :label="item"
                    :value="item"
                  >

                  </el-option>
                </el-select>
              </td>
              <td><el-input style="margin-left: 10% ;width: 160px"
                placeholder="请输入配装码"
                v-model="input_uuid"
                class="input-with-select"
              >

              </el-input></td>
              <td><el-button  icon="el-icon-search" type="info"   @click="read_uuid">点击识别</el-button></td>
            </tr>
            <tr>
              <td>
                <el-tag >五彩石</el-tag>
              </td>
              <td>
                <div class="block">
                  <el-cascader
                    v-model="zhuangbei.wucai_dic"
                    clearable
                    :options="wucai_options"
                    :props="{ expandTrigger: 'hover' }"
                    @change="click_refresh()"></el-cascader>
                </div>
              </td>
              <td></td>
              <td></td>
              <td></td>
              <td></td>
              <td></td>
              <td></td>
              <td></td>
              <td></td>
              <td>

              </td>
            </tr>
            <tr>
              <td></td>
              <td><el-switch
                style="display: block;width: 100%;margin-left: 10%"
                v-model="zhuangbei.wuhuang"
                active-color="#ff4949"
                inactive-color="#13ce66"
                inactive-text="不包含无皇"
                active-text=""
              >
              </el-switch></td>
              <td>
              </td>
              <td>
              </td>
              <td >
              </td>
              <td>
              </td>
              <td >
              </td>
              <td>
              </td>
              <td >

              </td>
              <td>
                <label style="font-size: x-large">DPS：{{dps}}</label>
              </td>
              <td style="width: auto"><el-button round type="success" size="small" @click="trans_shuxing" :disabled="isDisabled" :loading="isDisabled">将配装器属性导入计算器并计算</el-button></td>

            </tr>



          </table>
        </div>

      </el-dialog>

    </div>

  </div>
</template>
<style>
  html{
    width: 100%;
    height: 100%;
    overflow:hidden
  }
  body{
    overflow:auto;height:99vh
  }
  .demo-table-expand {
    font-size: 0;
  }
  .demo-table-expand label {
    width: 90px;
    color: #99a9bf;
    font-size: 10px;
  }
  .demo-table-expand .el-form-item{
    margin-right: 0;
    margin-bottom: 0;
    width: 50%;
    font-size: 10px;
  }
  .log {
    width: 100%;
    padding: 10px 16px 170px;
    background-color: #fff6f7;
    border-radius: 4px;
    border-left: 5px solid #1482f0;
    margin: 10px;
    font-size: large
  }
  .container{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  .content{
    width: 100%;
    height: 100%;
    overflow: auto;
    flex: 1;
  }
  .jing8{
    font-size: x-small;
    color: #97a8be
  }
  .jing6{
    font-size: x-small;
    color: #97a8be
  }
  .jing4{
    font-size: x-small;
    color: #97a8be
  }
  .jing3{
    font-size: x-small;
    color: #97a8be
  }

</style>

<script>
  // import { mapGetters } from 'vuex'
  import { cal } from '../../api/cal'
  import { store_zhuangbei_fangan } from '../../api/cal'
  import { read_zhuangbei_fangan } from '../../api/cal'
  import { cal_dan } from '../../api/cal'
  import { authdps } from '../../api/cal'
  import { check_zhuangbei } from '../../api/cal'
  import { zhuangbei_detail } from '../../api/cal'
  import { v4 as uuidv4 } from 'uuid';
  export default {
    name: 'home',
    data() {
      return {
        wucai_options:[
          {value: 'pofang', label: '破防', children: [
              {value: 'jichugongji', label: '攻击', children: [{value: 'huixiao', label: '会效', children:[{value: 4, label: '肆'},{value: 5, label: '伍'},{value: 6, label: '陆'},]},]},
              {value: 'huixiao', label: '会效', children: [{value: 'jichugongji', label: '攻击', children:[{value: 4, label: '肆'},{value: 5, label: '伍'},{value: 6, label: '陆'},]},]},
            ]},
          {value: 'yuanqi', label: '元气', children: [
          {value: 'jiasu', label: '加速', children: [{value: 'jichugongji', label: '攻击', children:[{value: 4, label: '肆'},{value: 5, label: '伍'},{value: 6, label: '陆'},]},]},
          {value: 'pofang', label: '破防', children: [{value: 'jichugongji', label: '攻击', children:[{value: 4, label: '肆'},{value: 5, label: '伍'},{value: 6, label: '陆'},]},
                                                    {value: 'huixiao', label: '会效', children:[{value: 4, label: '肆'},{value: 5, label: '伍'},{value: 6, label: '陆'},]},]},
          {value: 'huixiao', label: '会效', children: [{value: 'jichugongji', label: '攻击', children:[{value: 4, label: '肆'},{value: 5, label: '伍'},{value: 6, label: '陆'},]},
                                                    {value: 'pofang', label: '破防', children:[{value: 4, label: '肆'},{value: 5, label: '伍'},{value: 6, label: '陆'},]},]},
          {value: 'jichugongji', label: '攻击', children: [{value: 'pofang', label: '破防', children:[{value: 4, label: '肆'},{value: 5, label: '伍'},{value: 6, label: '陆'},]},
                                                    {value: 'huixiao', label: '会效', children:[{value: 4, label: '肆'},{value: 5, label: '伍'},{value: 6, label: '陆'},]},]},
        ]},
          {value: 'huixin', label: '会心', children: [
              {value: 'pofang', label: '破防', children: [{value: 'jichugongji', label: '攻击', children:[{value: 4, label: '肆'},{value: 5, label: '伍'},{value: 6, label: '陆'},]},
                  {value: 'huixiao', label: '会效', children:[{value: 4, label: '肆'},{value: 5, label: '伍'},{value: 6, label: '陆'},]},]},
              {value: 'huixiao', label: '会效', children: [{value: 'jichugongji', label: '攻击', children:[{value: 4, label: '肆'},{value: 5, label: '伍'},{value: 6, label: '陆'},]},
                  {value: 'pofang', label: '破防', children:[{value: 4, label: '肆'},{value: 5, label: '伍'},{value: 6, label: '陆'},]},]},
              {value: 'jichugongji', label: '攻击', children: [{value: 'pofang', label: '破防', children:[{value: 4, label: '肆'},{value: 5, label: '伍'},{value: 6, label: '陆'},]},
                  {value: 'huixiao', label: '会效', children:[{value: 4, label: '肆'},{value: 5, label: '伍'},{value: 6, label: '陆'},]},]},
            ]},
          {value: 'pozhao', label: '破招', children: [
              {value: 'jiasu', label: '加速', children: [{value: 'jichugongji', label: '攻击', children:[{value: 4, label: '肆'},{value: 5, label: '伍'},{value: 6, label: '陆'},]},]},
              {value: 'pofang', label: '破防', children: [{value: 'jichugongji', label: '攻击', children:[{value: 4, label: '肆'},{value: 5, label: '伍'},{value: 6, label: '陆'},]},
                                                          {value: 'huixiao', label: '会效', children:[{value: 4, label: '肆'},{value: 5, label: '伍'},{value: 6, label: '陆'},]},]},
              {value: 'huixiao', label: '会效', children: [{value: 'jichugongji', label: '攻击', children:[{value: 4, label: '肆'},{value: 5, label: '伍'},{value: 6, label: '陆'},]},
                                                          {value: 'pofang', label: '破防', children:[{value: 4, label: '肆'},{value: 5, label: '伍'},{value: 6, label: '陆'},]},]},
              {value: 'jichugongji', label: '攻击', children: [{value: 'pofang', label: '破防', children:[{value: 4, label: '肆'},{value: 5, label: '伍'},{value: 6, label: '陆'},]},
                                                          {value: 'huixiao', label: '会效', children:[{value: 4, label: '肆'},{value: 5, label: '伍'},{value: 6, label: '陆'},]},]},
            ]},
          {value: 'wushuang', label: '无双', children: [
              {value: 'jiasu', label: '加速', children: [{value: 'jichugongji', label: '攻击', children:[{value: 4, label: '肆'},{value: 5, label: '伍'},{value: 6, label: '陆'},]},]},
              {value: 'pofang', label: '破防', children: [{value: 'jichugongji', label: '攻击', children:[{value: 4, label: '肆'},{value: 5, label: '伍'},{value: 6, label: '陆'},]},
                  {value: 'huixiao', label: '会效', children:[{value: 4, label: '肆'},{value: 5, label: '伍'},{value: 6, label: '陆'},]},]},
              {value: 'huixiao', label: '会效', children: [{value: 'jichugongji', label: '攻击', children:[{value: 4, label: '肆'},{value: 5, label: '伍'},{value: 6, label: '陆'},]},
                  {value: 'pofang', label: '破防', children:[{value: 4, label: '肆'},{value: 5, label: '伍'},{value: 6, label: '陆'},]},]},
              {value: 'jichugongji', label: '攻击', children: [{value: 'pofang', label: '破防', children:[{value: 4, label: '肆'},{value: 5, label: '伍'},{value: 6, label: '陆'},]},
                  {value: 'huixiao', label: '会效', children:[{value: 4, label: '肆'},{value: 5, label: '伍'},{value: 6, label: '陆'},]},]},
            ]},

          {value: 'jichugongji', label: '攻击', children: [
              {value: 'pofang', label: '破防', children: [{value: 'huixiao', label: '会效', children:[{value: 4, label: '肆'},{value: 5, label: '伍'},{value: 6, label: '陆'},]},]},
              {value: 'huixiao', label: '会效', children: [{value: 'pofang', label: '破防', children:[{value: 4, label: '肆'},{value: 5, label: '伍'},{value: 6, label: '陆'},]},]},
            ]},

          {value: 'huixiao', label: '会效', children: [
              {value: 'jichugongji', label: '攻击', children: [{value: 'pofang', label: '破防', children:[{value: 4, label: '肆'},{value: 5, label: '伍'},{value: 6, label: '陆'},]},]},
              {value: 'pofang', label: '破防', children: [{value: 'jichugongji', label: '攻击', children:[{value: 4, label: '肆'},{value: 5, label: '伍'},{value: 6, label: '陆'},]},]},
            ]},
        ],
        wuxingshi_image:[
          {
            src:'../wuxingshi/8.png',
            id:8,
          },
          {
            src:"../wuxingshi/7.png",
            id:7,
          },
          {
            src:"../wuxingshi/6.png",
            id:6,
          },
          {
            src:"../wuxingshi/5.png",
            id:5,
          },
          {
            src:"../wuxingshi/4.png",
            id:4,
          },
          {
            src:"../wuxingshi/3.png",
            id:3,
          },
          {
            src:"../wuxingshi/2.png",
            id:2,
          },
          {
            src:"../wuxingshi/1.png",
            id:1,
          },

        ],
        input_uuid:'836eff25-31b5-4638-acd4-536c1d8b245f',
        uuid:'',
        uuid_isDisabled:false,
        sl: true,
        bf: false,
        huanzhuang_after: 0,
        huanzhuang_before: 0,
        announcement: false,
        cha_discriminate: "",
        innerDrawer: false,
        isDisabled: false,
        dpsData: [],
        skill_log: [],
        skill_sim_log: [],
        authData: [],
        itemkey: '',
        dps: 0,
        colors: [
          { color: '#f56c6c', percentage: 20 },
          { color: '#e6a23c', percentage: 40 },
          { color: '#5cb87a', percentage: 60 },
          { color: '#1989fa', percentage: 80 },
          { color: '#6f7ad3', percentage: 100 }
        ],
        miji_lin: ["伤害+5%", "伤害+4%", "伤害+3%", "会心+4%", "会心+3%", "会心+2%", "效果：瞬发斗"],
        miji_bing: ["伤害+5%", "伤害+4%", "伤害+3%", "会心+4%", "会心+3%",],
        miji_dou: ["伤害+5%", "伤害+4%", "伤害+3%", "会心+4%", "会心+3%", "会心+2%"],
        miji_qi: ["调息时间-3s", "调息时间-2s"],
        miji_bian: ["调息时间-2s", "调息时间-2s", "调息时间-1s", "星运消耗-5"],
        miji_kai: ["伤害+5%", "伤害+4%", "会心+4%", "会心+3%",],
        zengyifg: false,
        huanzhuang: false,
        drawer: false,
        miji: false,
        guaxiang: false,
        res: false,
        auth: false,
        skill_logs: false,
        skill_sim_logs: false,
        peizhuang: false,
        form: {
          zengyifugai: {
            meihuadun: 100,
            hongfa: 50,
            hanxiaoqianjun: 50,
            chaoshengyan: 5.4,
            fenlan: 40,
            shukuang: 100,
            xiaoshen: 40,
            zhenfen: 40,
            fenzhong: true,
          },
          huanzhuang: {
            before: {
              yuanqi: 0,
              gongji: 0,
              huixin: 0,
              huixiao: 0,
              pofang: 0,
              wushuang: 0,
              pozhao: 0,
              kong: [],
              jinglian: '精炼6',
            }, after: {
              yuanqi: 0,
              gongji: 0,
              huixin: 0,
              huixiao: 0,
              pofang: 0,
              wushuang: 0,
              pozhao: 0,
              kong: [],
              jinglian: '精炼6',
            },
          },
          jiayuancai: '1',
          jiayuanjiu: '1',
          fuzhuyaopin: '1',
          zengqiangyaopin: '1',
          fuzhushipin: '1',
          zengqiangshipin: '1',
          wuqimoshi: '1',
          jierishiwu: '1',
          ping: 2,
          models_check: ["稳定模式(欧皇起卦） -- 并提供当前属性收益"],
          models: ["稳定模式(欧皇起卦） -- 并提供当前属性收益", "黑鬼限定"],
          shan_ifbian: false,
          shui_ifbian: false,
          huo_ifbian: false,
          shan_bian_huo: 100,
          shui_bian_shan: 0,
          huo_bian_shan: 100,
          shenyuan_isinclude: true,
          miji_lin: ["伤害+5%", "伤害+4%", "伤害+3%", "会心+4%"],
          miji_bing: ["伤害+5%", "伤害+4%", "伤害+3%", "会心+4%"],
          miji_dou: ["伤害+5%", "伤害+4%", "会心+4%"],
          miji_qi: ["调息时间-3s", "调息时间-2s"],
          miji_bian: ["调息时间-2s", "调息时间-2s", "调息时间-1s", "星运消耗-5"],
          miji_kai: ["伤害+5%", "伤害+4%", "会心+4%", "会心+3%",],
          jichugongji: '13768',
          yuanqi: '3411',
          jiasu: '397',
          huixin: '25.3',
          huixiao: '185.35',
          pofang: '36.14',
          wushuang: '51.56',
          pozhao: '1688',
          jhxj: '1',
          qixue_1: '2',
          qixue_2: '1',
          qixue_3: '1',
          qixue_4: '1',
          qixue_5: '1',
          qixue_6: '1',
          qixue_7: '1',
          qixue_8: '1',
          qixue_9: '1',
          qixue_10: '1',
          qixue_11: '2',
          qixue_12: '1',
          zhenyan: '1',
          buff: ["套装+技能伤害", "套装+双会", "伤腰大附魔", "伤手大附魔", "提前放灯","伤帽-破防+496","伤衣-攻击+357"],
          shangku:'1',
          med: [],
          target: '5',
        },
        zhuangbei: {
          yuanqi: 0,
          jichugongji: 0,
          huixin: 0,
          huixiao: 0,
          pofang: 0,
          wushuang: 0,
          pozhao: 0,
          jiasu: 0,
          wuhuang: false,
          hat_list: [],
          jacket_list: [],
          belt_list: [],
          wrist_list: [],
          bottoms_list: [],
          shoes_list: [],
          necklace_list: [],
          pendant_list: [],
          ring_list: [],
          secondaryWeapon_list: [],
          primaryWeapon_list: [],


          zhuangbei_dic: {
            hat: [''],
            jacket: [''],
            belt: [''],
            wrist: [''],
            bottoms: [''],
            shoes: [''],
            necklace: [''],
            pendant: [''],
            ring_1: [''],
            ring_2: [''],
            secondaryWeapon: [''],
            primaryWeapon: [''],
          },
          zhuangbei_jinglian_dic: {
            hat: [0, [['', ''], ['', ''],], []],
            jacket: [0, [['', ''], ['', ''],], []],
            belt: [0, [['', ''], ['', ''],], []],
            wrist: [0, [['', ''], ['', ''],], []],
            bottoms: [0, [['', ''], ['', ''],], []],
            shoes: [0, [['', ''], ['', ''],], []],
            necklace: [0, [['', ''],], []],
            pendant: [0, [['', ''],], []],
            ring_1: [0, [], []],
            ring_2: [0, [], []],
            secondaryWeapon: [0, [['', ''],], []],
            primaryWeapon: [0, [['', ''], ['', ''], ['', ''],], []],
          },
          wucai_dic: [],

        },
        fumo_option: {
          toujiao: ['攻击+237', '攻击+155', '加速+441', '破招+441', '破招+299'],
          yiyao: ['无双+174',],
          shouku: ['元气+99', '元气+65', '无双+441', '无双+289', '破防+441', '破防+289', '会心+441', '会心+289',],
          anqi: ['加速+441', '元气+99', '破防+441'],
          jiezhi: ['攻击+237', '攻击+214','元气+99', '破招+441'],
          wuqi: ['攻击+237', '攻击+155',],
          wucaishi:['破效攻-六级',],
        },
        zhuangbei_shuxing: {
          yuanqi: 37,
          gengu: 38,
          jichugongji: 1868,
          ewaigongji: 0,
          mianbangongji: 0,
          huixin: 1088,
          huixiao: 0,
          pofang: 0,
          wushuang: 0,
          pozhao: 0,
          jiasu: 0,
          huixin_per:0,
          huixiao_per:0,
          pofang_per:0,
          wushuang_per:0,
          fin_gongji:0,
          fin_pofang:0,
          fin_pofang_per:0,

        }
      }
    },


    mounted() {
      this.gengxin();
      this.yuzhifangan();
    },
    methods: {
      che_zb_list(positon) {
        const req = {
          wuhuang: this.zhuangbei.wuhuang,
          positon: positon
        }
        check_zhuangbei(req).then(response => {
          // console.log(response)
          const x_list = positon + '_list'
          this.zhuangbei[x_list] = response.data
          // console.log(this.zhuangbei[x_list])

        })
        this.$forceUpdate()
      },
      qiehuan() {
        if (this.sl === false) {
          this.sl = true;
          this.bf = false
        } else {
          this.sl = false;
          this.bf = true
        }
      },
      shan_bian() {
        this.form.shan_ifbian = this.form.shan_ifbian !== true;
        this.shan_text_bian()
      },
      shui_bian() {
        this.form.shan_ifbian = this.form.shan_ifbian !== true;
      },
      huo_bian() {
        this.form.shan_ifbian = this.form.shan_ifbian !== true;
      },
      onSubmit() {
        this.isDisabled = true
        setTimeout(() => {
          this.isDisabled = false

        }, 3000)
        cal(this.form).then(response => {
          this.skill_log = []
          this.skill_log = response.data.skill_log
          this.skill_sim_log = []
          this.skill_sim_log = response.data.skill_sim_log
          this.dps = response.data.dps
          this.dpsData.push(response.data)
          this.itemkey = Math.random()
          ;
        })
      },

      auth_dps() {
        authdps(this.form).then(response => {
          this.authData = []
          this.authData = response.data
        })
      },
      jhxj(value) {
        this.data.jhxj = value
      },
      qixue_1(value) {
        this.data.qixue_1 = value
      },
      qixue_2(value) {
        this.data.qixue_2 = value
      },
      qixue_3(value) {
        this.data.qixue_3 = value
      },
      qixue_4(value) {
        this.data.qixue_4 = value
      },
      qixue_5(value) {
        this.data.qixue_5 = value
      },
      qixue_6(value) {
        this.data.qixue_6 = value
      },
      qixue_7(value) {
        this.data.qixue_7 = value
      },
      qixue_8(value) {
        this.data.qixue_8 = value
      },
      qixue_9(value) {
        this.data.qixue_9 = value
      },
      qixue_10(value) {
        this.data.qixue_10 = value
      },
      qixue_11(value) {
        this.data.qixue_11 = value
      },
      qixue_12(value) {
        this.data.qixue_12 = value
      },
      fuzhushipin(value) {
        this.data.fuzhushipin = value
      },
      zengqiangshipin(value) {
        this.data.zengqiangshipin = value
      },
      fuzhuyaopin(value) {
        this.data.fuzhuyaopin = value
      },
      zengqiangyaopin(value) {
        this.data.zengqiangyaopin = value
      },
      jiayuancai(value) {
        this.data.jiayuancai = value
      },
      jiayuanjiu(value) {
        this.data.jiayuanjiu = value
      },
      zhenyan(value) {
        this.data.zhenyan = value
      },
      target(value) {
        this.data.target = value
      },
      cha_dis() {
        let result
        result = JSON.parse(this.cha_discriminate)
        if (!this.cha_discriminate.hasOwnProperty('PoisonAttackPowerBase')){
          this.form.jichugongji = result.NeutralAttackPowerBase
          this.form.yuanqi = result.Spunk
          this.form.jiasu = parseFloat(result.HastePercent*43856.25).toFixed(0)+''
          this.form.huixin = parseFloat(result.NeutralCriticalStrikeRate*100).toFixed(2)+''
          this.form.huixiao = parseFloat(result.NeutralCriticalDamagePowerPercent*100).toFixed(2)+''
          this.form.pofang = parseFloat(result.NeutralOvercomePercent*100).toFixed(2)+''
          this.form.wushuang = parseFloat(result.StrainPercent*100).toFixed(2)+''
          this.form.pozhao = result.SurplusValue
          if (result.hasOwnProperty("增益"))
            this.form.buff = result.增益
        }
        else {this.form.jichugongji = result.基础攻击
          this.form.yuanqi = result.元气
          this.form.jiasu = result.加速等级
          this.form.huixin = result.会心率.replace("%", "")
          this.form.huixiao = result.会心效果.replace("%", "")
          this.form.pofang = result.破防率.replace("%", "")
          this.form.wushuang = result.无双率.replace("%", "")
          this.form.pozhao = result.破招
          if (result.hasOwnProperty("增益"))
            this.form.buff = result.增益
          this.innerDrawer = false}

      },
      copy_shuxing() {
        let oInput = document.createElement('input');
        let sx = {
          "元气": this.form.yuanqi,
          "加速等级": this.form.jiasu,
          "基础攻击": this.form.jichugongji,
          "会心率": this.form.huixin,
          "会心效果": this.form.huixiao,
          "破防率": this.form.pofang,
          "无双率": this.form.wushuang,
          "破招": this.form.pozhao,
          "增益": this.form.buff,
        }
        oInput.value = JSON.stringify(sx);
        // console.log(sx)
        document.body.appendChild(oInput);
        oInput.select(); // 选择对象;
        document.execCommand("Copy"); // 执行浏览器复制命令
        this.$message({
          message: '复制成功',
          type: 'success'
        })
        oInput.remove()
      },
      onSub() {
        this.isDisabled = true
        setTimeout(() => {
          this.isDisabled = false
        }, 3000)
        cal_dan(this.form).then(response => {
          // console.log(response.data)
          this.huanzhuang_before = response.data.dps
          this.huanzhuang_after = response.data.new_dps
        })
      },
      check_gongji() {
        if (this.form.jichugongji > 16500) {
          this.$alert('你可能是无皇大佬/第一次使用计算器的萌新</br>检测到基础攻击力填入可能存在异常</br>请再次确认填入的是“基础”攻击力</br>在游戏中光标移到面板的攻击力上，下方会显示“基础混元攻击”', {
            confirmButtonText: '确定',
            dangerouslyUseHTMLString: true
            // callback: action => {this.$message({type: 'info', message: `action: ${ action }`});}
          })
        }
      },
      guiyi() {
        this.$notify({
          title: '归一',
          message: '忽略橙武特效触发，本选项只针对橙武技能伤害加成',
          type: 'success'
        })
      },
      longmen() {
        this.$notify({
          title: '龙门飞剑',
          message: '6s 固定伤害1500，30s一次主动持续6s 提供4.7009%/6.3968%的双会 -- 本人未测试',
          type: 'success'
        })
      },
      weihou() {
        this.$notify({
          title: '尾后针',
          message: '奶毒奇穴和蝶池冲突，善待奶毒，从我做起',
          type: 'success'
        })
      },
      shanyou() {
        this.$notify({
          title: '善友',
          message: '会对整体技能循环和收益造成影响，目前善友只支持欧皇起卦',
          type: 'success'
        })
      },

      zhuangbei_posi(value, posi) {
        const resp = {
          value: value,
          posi: posi
        }
        let p1 = new Promise((resolve, reject) => {
            zhuangbei_detail(resp).then(response => {resolve(response)})
        })
          Promise.all([
            p1,
        ]).then(result  => {
              this.zhuangbei.zhuangbei_dic[resp.posi] = []
              // this.$set(this.zhuangbei.zhuangbei_dic,[resp.posi],result[0].data)
              // console.log(this.zhuangbei.zhuangbei_jinglian_dic[posi][0])

              this.zhuangbei.zhuangbei_dic[resp.posi] = result[0].data
              this.zhuangbei.zhuangbei_jinglian_dic[posi][0] = this.zhuangbei.zhuangbei_dic[posi][14]
              this.zhuangbei.zhuangbei_jinglian_dic[posi][1][0][0] = this.zhuangbei.zhuangbei_dic[posi][17]
              this.zhuangbei.zhuangbei_jinglian_dic[posi][1][1][0] = this.zhuangbei.zhuangbei_dic[posi][18]
              this.zhuangbei.zhuangbei_jinglian_dic[posi][1][2][0] = this.zhuangbei.zhuangbei_dic[posi][19]
              // this.zhuangbei.zb_list = []

        },
        )

      },
      yijianfumo() {
        this.zhuangbei.zhuangbei_jinglian_dic.hat[1][0][1] = '6'
        this.zhuangbei.zhuangbei_jinglian_dic.hat[1][1][1] = '6'
        this.zhuangbei.zhuangbei_jinglian_dic.hat[2] = '攻击+237'
        this.zhuangbei.zhuangbei_jinglian_dic.jacket[1][0][1] = '6'
        this.zhuangbei.zhuangbei_jinglian_dic.jacket[1][1][1] = '6'
        this.zhuangbei.zhuangbei_jinglian_dic.jacket[2] = '无双+174'
        this.zhuangbei.zhuangbei_jinglian_dic.belt[1][0][1] = '6'
        this.zhuangbei.zhuangbei_jinglian_dic.belt[1][1][1] = '6'
        this.zhuangbei.zhuangbei_jinglian_dic.belt[2] = '无双+174'
        this.zhuangbei.zhuangbei_jinglian_dic.wrist[1][0][1] = '6'
        this.zhuangbei.zhuangbei_jinglian_dic.wrist[1][1][1] = '6'
        this.zhuangbei.zhuangbei_jinglian_dic.wrist[2] = '破防+441'
        this.zhuangbei.zhuangbei_jinglian_dic.bottoms[1][0][1] = '6'
        this.zhuangbei.zhuangbei_jinglian_dic.bottoms[1][1][1] = '6'
        this.zhuangbei.zhuangbei_jinglian_dic.bottoms[2] = '破防+441'
        this.zhuangbei.zhuangbei_jinglian_dic.shoes[1][0][1] = '6'
        this.zhuangbei.zhuangbei_jinglian_dic.shoes[1][1][1] = '6'
        this.zhuangbei.zhuangbei_jinglian_dic.shoes[2] = '攻击+237'
        this.zhuangbei.zhuangbei_jinglian_dic.necklace[1][0][1] = '6'
        this.zhuangbei.zhuangbei_jinglian_dic.pendant[1][0][1] = '6'
        this.zhuangbei.zhuangbei_jinglian_dic.ring_1[2] = '攻击+237'
        this.zhuangbei.zhuangbei_jinglian_dic.ring_2[2] = '攻击+237'
        this.zhuangbei.zhuangbei_jinglian_dic.secondaryWeapon[1][0][1] = '6'
        this.zhuangbei.zhuangbei_jinglian_dic.secondaryWeapon[2] = '加速+397'
        this.zhuangbei.zhuangbei_jinglian_dic.primaryWeapon[1][0][1] = '6'
        this.zhuangbei.zhuangbei_jinglian_dic.primaryWeapon[1][1][1] = '6'
        this.zhuangbei.zhuangbei_jinglian_dic.primaryWeapon[1][2][1] = '6'
        this.zhuangbei.zhuangbei_jinglian_dic.primaryWeapon[2] = '攻击+237'
        this.$forceUpdate();
        this.click_refresh()


      },
      cal_zhuangbeishuxing() {
        this.zhuangbei_shuxing = {
          yuanqi: 37,
          gengu: 38,
          jichugongji: 1868,
          ewaigongji: 0,
          mianbangongji: 0,
          huixin: 1088,
          huixiao: 0,
          pofang: 0,
          wushuang: 0,
          pozhao: 0,
          jiasu: 0,
        }
        const kong_level = {
          元气:{
            '':0,
            0:0,
            1:3,
            2:7,
            3:10,
            4:14,
            5:17,
            6:21,
            7:31,
            8:46,
          },
          攻击:{
            '':0,
            0:0,
            1:8,
            2:16,
            3:25,
            4:33,
            5:41,
            6:50,
            7:75,
            8:111,
          },
          破防:{
            '':0,
            0:0,
            1:15,
            2:31,
            3:46,
            4:62,
            5:78,
            6:93,
            7:140,
            8:208,
          },
          无双:{
            '':0,
            0:0,
            1:15,
            2:31,
            3:46,
            4:62,
            5:78,
            6:93,
            7:140,
            8:208,
          },
          会心:{
            '':0,
            0:0,
            1:15,
            2:31,
            3:46,
            4:62,
            5:78,
            6:93,
            7:140,
            8:208,
          },
          破招:{
            '':0,
            0:0,
            1:15,
            2:31,
            3:46,
            4:62,
            5:78,
            6:93,
            7:140,
            8:208,
          },
          会效:{
            '':0,
            0:0,
            1:15,
            2:31,
            3:46,
            4:62,
            5:78,
            6:93,
            7:140,
            8:208,
          },
        }
        const jinglian_level = {
          0:1,
          1:1.005,
          2:1.0125,
          3:1.02375,
          4:1.0375,
          5:1.055,
          6:1.075,
          7:1.098,
          8:1.124,
        }
        // 神元加成
        var shenyuan_k = 1
        var taozhuang_ls = []
        if(this.form.qixue_8 === '1'){shenyuan_k = 1.1}
        // 处理装备属性和精炼
        for (let key in this.zhuangbei.zhuangbei_dic) {
          if (isNaN(this.zhuangbei.zhuangbei_dic[key][6])) {
            // console.log(key, this.zhuangbei.zhuangbei_dic[key]);
          } else {
            // console.log(Math.round(parseInt(this.zhuangbei.zhuangbei_dic[key][9])*jinglian_level[this.zhuangbei.zhuangbei_jinglian_dic[key][0]]))
            this.zhuangbei_shuxing.yuanqi += Math.round(parseInt(this.zhuangbei.zhuangbei_dic[key][6])*jinglian_level[this.zhuangbei.zhuangbei_jinglian_dic[key][0]]);
            this.zhuangbei_shuxing.jichugongji += Math.round(parseInt(this.zhuangbei.zhuangbei_dic[key][7])*jinglian_level[this.zhuangbei.zhuangbei_jinglian_dic[key][0]]);
            this.zhuangbei_shuxing.huixin += Math.round(parseInt(this.zhuangbei.zhuangbei_dic[key][8])*jinglian_level[this.zhuangbei.zhuangbei_jinglian_dic[key][0]]);
            this.zhuangbei_shuxing.huixiao += Math.round(parseInt(this.zhuangbei.zhuangbei_dic[key][9])*jinglian_level[this.zhuangbei.zhuangbei_jinglian_dic[key][0]]);
            this.zhuangbei_shuxing.pofang += Math.round(parseInt(this.zhuangbei.zhuangbei_dic[key][10])*jinglian_level[this.zhuangbei.zhuangbei_jinglian_dic[key][0]]);
            this.zhuangbei_shuxing.wushuang += Math.round(parseInt(this.zhuangbei.zhuangbei_dic[key][11])*jinglian_level[this.zhuangbei.zhuangbei_jinglian_dic[key][0]]);
            this.zhuangbei_shuxing.pozhao += Math.round(parseInt(this.zhuangbei.zhuangbei_dic[key][12])*jinglian_level[this.zhuangbei.zhuangbei_jinglian_dic[key][0]]);
            this.zhuangbei_shuxing.jiasu += Math.round(parseInt(this.zhuangbei.zhuangbei_dic[key][13])*jinglian_level[this.zhuangbei.zhuangbei_jinglian_dic[key][0]]);
          }

          // 添加套装
          taozhuang_ls.push(this.zhuangbei.zhuangbei_dic[key][15])
          // console.log(taozhuang_ls)
        }

        for (let key in this.zhuangbei.zhuangbei_jinglian_dic) {
          // 处理镶嵌
          for (let item of this.zhuangbei.zhuangbei_jinglian_dic[key][1]){

            if (item[0]==='元气' ){this.zhuangbei_shuxing.yuanqi += kong_level[item[0]][item[1]]}
            else if (item[0]==='攻击' ){this.zhuangbei_shuxing.jichugongji += kong_level[item[0]][item[1]]}
            else if (item[0]==='会心' ){this.zhuangbei_shuxing.huixin += kong_level[item[0]][item[1]]}
            else if (item[0]==='会效' ){this.zhuangbei_shuxing.huixiao += kong_level[item[0]][item[1]]}
            else if (item[0]==='破防' ){this.zhuangbei_shuxing.pofang += kong_level[item[0]][item[1]]}
            else if (item[0]==='无双' ){this.zhuangbei_shuxing.wushuang += kong_level[item[0]][item[1]]}
            else if (item[0]==='破招' ){this.zhuangbei_shuxing.pozhao += kong_level[item[0]][item[1]]}
          }
          // 处理附魔
          let fm = this.zhuangbei.zhuangbei_jinglian_dic[key][2]
          // console.log(fm.slice(0,2),fm.slice(3,))
          if (fm.slice(0,2)==='元气' ){this.zhuangbei_shuxing.yuanqi += parseInt(fm.slice(3,))}
          else if (fm.slice(0,2)==='攻击' ){this.zhuangbei_shuxing.jichugongji += parseInt(fm.slice(3,))}
          else if (fm.slice(0,2)==='会心' ){this.zhuangbei_shuxing.huixin += parseInt(fm.slice(3,))}
          else if (fm.slice(0,2)==='会效' ){this.zhuangbei_shuxing.huixiao += parseInt(fm.slice(3,))}
          else if (fm.slice(0,2)==='破防' ){this.zhuangbei_shuxing.pofang += parseInt(fm.slice(3,))}
          else if (fm.slice(0,2)==='无双' ){this.zhuangbei_shuxing.wushuang += parseInt(fm.slice(3,))}
          else if (fm.slice(0,2)==='破招' ){this.zhuangbei_shuxing.pozhao += parseInt(fm.slice(3,))}
          else if (fm.slice(0,2)==='加速' ){this.zhuangbei_shuxing.jiasu += parseInt(fm.slice(3,))}
          }
        // 处理五彩石
        const wucai_shuxing = {
          first_shuxing :{
            yuanqi:{4:44,5:55,6:66},
            jichugongji:{4:105,5:131,6:157},
            wushuang:{4:195,5:244,6:293},
            pozhao:{4:195,5:244,6:293},
            huixin:{4:195,5:244,6:293},
            pofang:{4:195,5:244,6:293},
            huixiao:{4:195,5:244,6:293},
          },
          second_shuxing :{
            jichugongji:{4:210,5:262,6:314},
            jiasu:{4:390,5:488,6:585},
            pofang:{4:390,5:488,6:585},
            huixiao:{4:390,5:488,6:585},
          },
          third_shuxing :{
            jichugongji:{4:419,5:524,6:629},
            huixiao:{4:780,5:975,6:1170},
            pofang:{4:780,5:975,6:1170},
          },
        }

        // console.log(this.zhuangbei.wucai_dic[0],wucai_shuxing.first_shuxing[this.zhuangbei.wucai_dic[0]][this.zhuangbei.wucai_dic[3]],)
        // console.log(this.zhuangbei.wucai_dic[1],wucai_shuxing.second_shuxing[this.zhuangbei.wucai_dic[1]][this.zhuangbei.wucai_dic[3]],)
        // console.log(this.zhuangbei.wucai_dic[2],wucai_shuxing.third_shuxing[this.zhuangbei.wucai_dic[2]][this.zhuangbei.wucai_dic[3]],)

        if ((this.zhuangbei.wucai_dic).length === 4){
          this.zhuangbei_shuxing[this.zhuangbei.wucai_dic[0]] += wucai_shuxing.first_shuxing[this.zhuangbei.wucai_dic[0]][this.zhuangbei.wucai_dic[3]]
          this.zhuangbei_shuxing[this.zhuangbei.wucai_dic[1]] += wucai_shuxing.second_shuxing[this.zhuangbei.wucai_dic[1]][this.zhuangbei.wucai_dic[3]]
          this.zhuangbei_shuxing[this.zhuangbei.wucai_dic[2]] += wucai_shuxing.third_shuxing[this.zhuangbei.wucai_dic[2]][this.zhuangbei.wucai_dic[3]]
        }

        // 处理武器腰坠
        for (var i = this.form.buff.length; i >= 0 ; i--){
          if(this.form.buff[i] === '武器·空亡宫') {this.form.buff.splice(i, 1)}
          else if (this.form.buff[i] === '武器·谢光阴'){this.form.buff.splice(i, 1)}
          else if (this.form.buff[i] === 'POWER·归一'){this.form.buff.splice(i, 1)}
          else if (this.form.buff[i] === '武器·逢龙'){this.form.buff.splice(i, 1)}
          else if (this.form.buff[i] === '飞剑·意'){this.form.buff.splice(i, 1)}
          else if (this.form.buff[i] === '腰坠·风特效'){this.form.buff.splice(i, 1)}
          else if (this.form.buff[i] === '套装+技能伤害'){this.form.buff.splice(i, 1)}
          else if (this.form.buff[i] === '套装+双会'){this.form.buff.splice(i, 1)}
        }
        if (this.zhuangbei.zhuangbei_dic.primaryWeapon[1] === '空亡宫'){this.form.buff.push('武器·空亡宫')}
        else if (this.zhuangbei.zhuangbei_dic.primaryWeapon[1] === '谢光阴'){this.form.buff.push('武器·谢光阴')}
        else if (this.zhuangbei.zhuangbei_dic.primaryWeapon[1] === '归一'){this.form.buff.push('POWER·归一')}
        else if (this.zhuangbei.zhuangbei_dic.primaryWeapon[1] === '三试夺魂灯'){this.form.buff.push('飞剑·意')}
        else if (this.zhuangbei.zhuangbei_dic.primaryWeapon[1] === '逢龙'){this.form.buff.push('武器·逢龙')}
        else if (this.zhuangbei.zhuangbei_dic.primaryWeapon[1] === '[小橙武5]朗月梵音'){this.form.buff.push('武器·五六阶小橙武')}
        // console.log(['香梦',' 此未同','游仙'].includes(this.zhuangbei.zhuangbei_dic.pendant[1]))
        if (['香梦','此未同','游仙'].includes(this.zhuangbei.zhuangbei_dic.pendant[1]) ){this.form.buff.push('腰坠·风特效')}
        // else if (this.zhuangbei.zhuangbei_dic.pendant[1] === '游仙'){this.form.buff.push('腰坠·风特效')}
        // else if (this.zhuangbei.zhuangbei_dic.pendant[1] === '此未同'){this.form.buff.push('腰坠·风特效')}

        // 处理套装
        var guiyang = 0
        var jilin = 0
        var xingyan = 0
        var jingchen = 0
        var baixiang = 0
        var nuanfeng = 0
        var zefang = 0
        var heishan = 0
        var yuchu = 0

        for(let item of taozhuang_ls){
          if (item === '5760切糕'){jilin += 1}
          else if (item === '6430切糕'){nuanfeng += 1}
          else if (item === '6250T套'){zefang += 1}
          else if (item === '5600T套'){baixiang += 1}
          else if (item === '黑山林海声望内功'){heishan += 1}
          else if (item === '御厨'){yuchu += 1}
        }
        if(nuanfeng === 2){this.zhuangbei_shuxing.huixin += 620}
        else if (nuanfeng === 3){this.zhuangbei_shuxing.huixin += 620}
        else if (nuanfeng === 4){this.zhuangbei_shuxing.wushuang += 620;this.zhuangbei_shuxing.huixin += 620}
        else if (nuanfeng === 5){this.zhuangbei_shuxing.wushuang += 620;this.zhuangbei_shuxing.huixin += 620}
        if(jilin === 2){this.zhuangbei_shuxing.huixin += 554}
        else if(jilin === 3){this.zhuangbei_shuxing.huixin += 554}
        else if (jilin === 4){this.zhuangbei_shuxing.wushuang += 554;this.zhuangbei_shuxing.huixin += 554}
        else if (jilin === 5){this.zhuangbei_shuxing.wushuang += 554;this.zhuangbei_shuxing.huixin += 554}
        // zefang
        if(zefang === 2){this.form.buff.push('套装+技能伤害')}
        else if (zefang === 3){this.form.buff.push('套装+技能伤害')}
        else if (zefang === 4){this.form.buff.push('套装+双会');this.form.buff.push('套装+技能伤害')}
        else if (zefang === 5){this.form.buff.push('套装+双会');this.form.buff.push('套装+技能伤害')}
        // 百相
        if(baixiang === 2){this.form.buff.push('套装+双会')}
        else if (baixiang === 3){this.form.buff.push('套装+双会')}
        else if (baixiang === 4){this.form.buff.push('套装+技能伤害');this.form.buff.push('套装+双会')}
        else if (baixiang === 5){this.form.buff.push('套装+技能伤害');this.form.buff.push('套装+双会')}
        // 御厨
        if(yuchu === 2){this.zhuangbei_shuxing.gengu += 138;this.zhuangbei_shuxing.yuanqi += 138}
        else if (yuchu === 3){this.zhuangbei_shuxing.gengu += 138;this.zhuangbei_shuxing.yuanqi += 138}
        else if (yuchu === 4){this.zhuangbei_shuxing.gengu += 138;this.zhuangbei_shuxing.yuanqi += 138}
        else if (yuchu === 5){this.zhuangbei_shuxing.gengu += 138;this.zhuangbei_shuxing.yuanqi += 138}
        // 处理神元
        this.zhuangbei_shuxing.yuanqi = Math.floor(this.zhuangbei_shuxing.yuanqi*shenyuan_k)
        this.zhuangbei_shuxing.huixin += Math.floor(this.zhuangbei_shuxing.gengu * 0.64) + Math.floor(this.zhuangbei_shuxing.yuanqi * 0.47);
        this.zhuangbei_shuxing.jichugongji += Math.floor(this.zhuangbei_shuxing.yuanqi * 0.18);
        this.zhuangbei_shuxing.pofang += Math.floor(this.zhuangbei_shuxing.yuanqi * 0.3);
        this.zhuangbei_shuxing.ewaigongji += Math.floor(this.zhuangbei_shuxing.yuanqi * 1.8);
        this.zhuangbei_shuxing.mianbangongji = this.zhuangbei_shuxing.ewaigongji + this.zhuangbei_shuxing.jichugongji
        // 大附魔
        this.zhuangbei_shuxing.fin_gongji = this.zhuangbei_shuxing.mianbangongji
        this.zhuangbei_shuxing.fin_pofang = this.zhuangbei_shuxing.pofang
        for (let item of this.form.buff){
          // console.log(item)
          if ( item === '伤衣-攻击+357'){this.zhuangbei_shuxing.fin_gongji += 357}
          if ( item === '伤帽-破防+496'){this.zhuangbei_shuxing.fin_pofang += 496}
        }
        // 计算属性百分比
        this.zhuangbei_shuxing.huixin_per = Math.round(this.zhuangbei_shuxing.huixin*100/357.375)/100
        this.zhuangbei_shuxing.huixiao_per =175+Math.round(this.zhuangbei_shuxing.huixiao*100/125.0625)/100
        this.zhuangbei_shuxing.pofang_per =Math.round(this.zhuangbei_shuxing.pofang*100/357.375)/100
        this.zhuangbei_shuxing.fin_pofang_per =Math.round(this.zhuangbei_shuxing.fin_pofang*100/357.375)/100
        this.zhuangbei_shuxing.wushuang_per =Math.round(this.zhuangbei_shuxing.wushuang*100/344.5875)/100

      },
      click_refresh() {
        // this.$refs.cal_shu.click()
        setTimeout(
          function(){
          document.getElementById("cal_shu").click()},1000)

      },
      trans_shuxing(){
        this.form.jichugongji = this.zhuangbei_shuxing.jichugongji
        this.form.yuanqi = this.zhuangbei_shuxing.yuanqi
        this.form.jiasu = this.zhuangbei_shuxing.jiasu
        this.form.huixin = this.zhuangbei_shuxing.huixin_per
        this.form.huixiao = this.zhuangbei_shuxing.huixiao_per
        this.form.pofang = this.zhuangbei_shuxing.pofang_per
        this.form.wushuang = this.zhuangbei_shuxing.wushuang_per
        this.form.pozhao = this.zhuangbei_shuxing.pozhao
        this.form.shenyuan_isinclude = true
        document.getElementById("jisuandps").click()
      },
      creat_uuid(){
        this.uuid = ''
        this.uuid_isDisabled = true
        setTimeout(() => {
          this.uuid_isDisabled = false
        }, 3000)
        this.uuid = uuidv4()
        // console.log(this.uuid)

        let uuidInput = document.createElement('input');
        uuidInput.value = this.uuid;
        // console.log(sx)
        document.body.appendChild(uuidInput);
        uuidInput.select(); // 选择对象;
        const zb_content = {
          uuid:this.uuid,
          zhuangbei: this.zhuangbei,
          buff:this.form.buff,
        }
        document.execCommand("Copy"); // 执行浏览器复制命令
        store_zhuangbei_fangan(zb_content).then(response=>{

          this.$message({
            message: '配装码已复制，请在本地保存好',
            type: 'success'
          })
        })

      },
      read_uuid(){
        const read_uuid_content = {
          uuid:this.input_uuid
        }
        read_zhuangbei_fangan(read_uuid_content).then(response=>{
          // console.log(response.data)
          this.form.buff = response.data.buff
          this.zhuangbei = response.data.zhuangbei
          this.click_refresh()
        })
      },
      yuzhifangan(){
        const read_uuid_content = {
          uuid:this.input_uuid
        }
        console.log(read_uuid_content)
        read_zhuangbei_fangan(read_uuid_content).then(response=>{
          // console.log(response.data)
          this.form.buff = response.data.buff
          this.zhuangbei = response.data.zhuangbei
        })
      },
      gengxin() {
        this.$notify({
          title: '版本：同步测试服2021.12.21更新',
          message: '更新了点冬至装备',
          type: 'success'
        })
      },
      // changeSelection(){
      //   let path=this.$refs.hat_kong1.selectedLabel
      //   console.log(path)
      //   this.$refs.hat_kong1.$el.children[0].children[1].setAttribute('style','background:url('+ path +') no-repeat;color:#fff');
      //
      // },

  },
    }

</script>
